diff --git a/src/main/java/com/auth0/client/mgmt/ActionsClient.java b/src/main/java/com/auth0/client/mgmt/ActionsClient.java index df141d3e7..e1faa52c0 100644 --- a/src/main/java/com/auth0/client/mgmt/ActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ActionsClient.java @@ -60,6 +60,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve all actions. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve all actions. */ @@ -109,6 +116,13 @@ public void delete(String id) { this.rawClient.delete(id).body(); } + /** + * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. + */ + public void delete(String id, RequestOptions requestOptions) { + this.rawClient.delete(id, requestOptions).body(); + } + /** * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. */ @@ -124,21 +138,28 @@ public void delete(String id, DeleteActionRequestParameters request, RequestOpti } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public UpdateActionResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. + */ + public UpdateActionResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public UpdateActionResponseContent update(String id, UpdateActionRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public UpdateActionResponseContent update( String id, UpdateActionRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java index 2227df524..2bf5bcd76 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncActionsClient.java @@ -61,6 +61,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve all actions. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve all actions. */ @@ -112,6 +119,13 @@ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } + /** + * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. + */ + public CompletableFuture delete(String id, RequestOptions requestOptions) { + return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); + } + /** * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. */ @@ -128,21 +142,28 @@ public CompletableFuture delete( } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture update(String id, UpdateActionRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture update( String id, UpdateActionRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java b/src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java index 410492bbc..8e588b763 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncBrandingClient.java @@ -62,6 +62,13 @@ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update branding settings. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update branding settings. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java index 68800ba2d..62813ccd9 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncClientGrantsClient.java @@ -39,14 +39,21 @@ public AsyncRawClientGrantsClient withRawResponse() { } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public CompletableFuture> list( ListClientGrantsRequestParameters request) { @@ -54,7 +61,7 @@ public CompletableFuture> list( } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public CompletableFuture> list( ListClientGrantsRequestParameters request, RequestOptions requestOptions) { @@ -62,14 +69,14 @@ public CompletableFuture> list( } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CompletableFuture create(CreateClientGrantRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CompletableFuture create( CreateClientGrantRequestContent request, RequestOptions requestOptions) { @@ -77,7 +84,7 @@ public CompletableFuture create( } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public CompletableFuture get(String id) { @@ -85,7 +92,7 @@ public CompletableFuture get(String id) { } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public CompletableFuture get(String id, RequestOptions requestOptions) { @@ -93,14 +100,14 @@ public CompletableFuture get(String id, RequestOp } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); @@ -113,6 +120,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update a client grant. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update a client grant. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java index 24bec4614..1d8b332b3 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncClientsClient.java @@ -46,37 +46,37 @@ public AsyncRawClientsClient withRawResponse() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

<ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

    + *
  • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
  • + *
  • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
  • + *
  • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

    + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
  • + *

*/ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); @@ -84,37 +84,75 @@ public CompletableFuture> list() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

<ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

    + *
  • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
  • + *
  • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
  • + *
  • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

    + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
  • + *

+ */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

    + *
  • + * The following can be retrieved with any scope: + * client_id, app_type, name, and description. + *
  • + *
  • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
  • + *
  • + * The following properties can only be retrieved with the + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
  • + *

*/ public CompletableFuture> list(ListClientsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -122,37 +160,37 @@ public CompletableFuture> list(ListClientsRequestPara /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

<ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

    + *
  • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
  • + *
  • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
  • + *
  • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

    + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
  • + *

*/ public CompletableFuture> list( ListClientsRequestParameters request, RequestOptions requestOptions) { @@ -160,40 +198,40 @@ public CompletableFuture> list( } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

*/ public CompletableFuture create(CreateClientRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read
Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

*/ public CompletableFuture create( CreateClientRequestContent request, RequestOptions requestOptions) { @@ -202,36 +240,36 @@ public CompletableFuture create( /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

<ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

    + *
  • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

    + * client_id, app_type, name, and description. + *
  • + *
  • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
  • + *
  • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
  • + *

*/ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); @@ -239,36 +277,73 @@ public CompletableFuture get(String id) { /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

<ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

    + *
  • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

    + * client_id, app_type, name, and description. + *
  • + *
  • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
  • + *
  • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
  • + *

+ */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

    + *
  • + * The following properties can be retrieved with any of the scopes: + * client_id, app_type, name, and description. + *
  • + *
  • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
  • + *
  • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
  • + *

*/ public CompletableFuture get(String id, GetClientRequestParameters request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); @@ -276,36 +351,36 @@ public CompletableFuture get(String id, GetClientReque /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

<ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

    + *
  • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

    + * client_id, app_type, name, and description. + *
  • + *
  • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
  • + *
  • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
  • + *

*/ public CompletableFuture get( String id, GetClientRequestParameters request, RequestOptions requestOptions) { @@ -327,15 +402,15 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

Notes:

*
    *
  • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
  • - *
  • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
  • - *
  • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
  • - *
  • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
  • - *
  • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
  • - *
  • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
  • + *
  • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
  • + *
  • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
  • + *
  • To configure client_authentication_methods, the update:client_credentials scope is required.
  • + *
  • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
  • + *
  • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
  • *
*/ public CompletableFuture update(String id) { @@ -343,15 +418,31 @@ public CompletableFuture update(String id) { } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. + *

Notes:

+ *
    + *
  • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
  • + *
  • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
  • + *
  • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
  • + *
  • To configure client_authentication_methods, the update:client_credentials scope is required.
  • + *
  • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
  • + *
  • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
  • + *
+ */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

Notes:

*
    *
  • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
  • - *
  • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
  • - *
  • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
  • - *
  • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
  • - *
  • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
  • - *
  • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
  • + *
  • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
  • + *
  • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
  • + *
  • To configure client_authentication_methods, the update:client_credentials scope is required.
  • + *
  • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
  • + *
  • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
  • *
*/ public CompletableFuture update(String id, UpdateClientRequestContent request) { @@ -359,15 +450,15 @@ public CompletableFuture update(String id, UpdateCl } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

Notes:

*
    *
  • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
  • - *
  • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
  • - *
  • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
  • - *
  • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
  • - *
  • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
  • - *
  • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
  • + *
  • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
  • + *
  • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
  • + *
  • To configure client_authentication_methods, the update:client_credentials scope is required.
  • + *
  • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
  • + *
  • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
  • *
*/ public CompletableFuture update( @@ -378,7 +469,7 @@ public CompletableFuture update( /** * Rotate a client secret. *

This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

- *

For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

+ *

For more information, read Rotate Client Secrets.

*/ public CompletableFuture rotateSecret(String id) { return this.rawClient.rotateSecret(id).thenApply(response -> response.body()); @@ -387,7 +478,7 @@ public CompletableFuture rotateSecret(String /** * Rotate a client secret. *

This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

- *

For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

+ *

For more information, read Rotate Client Secrets.

*/ public CompletableFuture rotateSecret(String id, RequestOptions requestOptions) { return this.rawClient.rotateSecret(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/AsyncConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncConnectionProfilesClient.java index f1f1a294e..adaa05fac 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncConnectionProfilesClient.java @@ -41,6 +41,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. */ @@ -138,6 +145,13 @@ public CompletableFuture update(String i return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update the details of a specific Connection Profile. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update the details of a specific Connection Profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncConnectionsClient.java index 872ad5838..4a7068a58 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncConnectionsClient.java @@ -56,60 +56,80 @@ public AsyncRawConnectionsClient withRawResponse() { } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

This endpoint supports two types of pagination:

- *

<ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

+ *

    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *

*

Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

- *

<h2>Checkpoint Pagination</h2>

+ *

Checkpoint Pagination

*

To search by checkpoint, use the following parameters:

- *

<ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

- *

<b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

+ *

    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
  • + *

+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

This endpoint supports two types of pagination:

- *

<ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

+ *

    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *

*

Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

- *

<h2>Checkpoint Pagination</h2>

+ *

Checkpoint Pagination

*

To search by checkpoint, use the following parameters:

- *

<ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

- *

<b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

+ *

    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
  • + *

+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

+ */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + *

This endpoint supports two types of pagination:

+ *

    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *

+ *

Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

+ *

Checkpoint Pagination

+ *

To search by checkpoint, use the following parameters:

+ *

    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
  • + *

+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture> list(ListConnectionsQueryParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

This endpoint supports two types of pagination:

- *

<ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

+ *

    + *
  • Offset pagination
  • + *
  • Checkpoint pagination
  • + *

*

Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

- *

<h2>Checkpoint Pagination</h2>

+ *

Checkpoint Pagination

*

To search by checkpoint, use the following parameters:

- *

<ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

- *

<b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

+ *

    + *
  • from: Optional id from which to start selection.
  • + *
  • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
  • + *

+ *

Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

*/ public CompletableFuture> list( ListConnectionsQueryParameters request, RequestOptions requestOptions) { @@ -117,16 +137,16 @@ public CompletableFuture> list( } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

<b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

+ * Creates a new connection according to the JSON object received in body. + *

Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

*/ public CompletableFuture create(CreateConnectionRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

<b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

+ * Creates a new connection according to the JSON object received in body. + *

Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

*/ public CompletableFuture create( CreateConnectionRequestContent request, RequestOptions requestOptions) { @@ -134,21 +154,28 @@ public CompletableFuture create( } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public CompletableFuture get(String id, GetConnectionRequestParameters request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public CompletableFuture get( String id, GetConnectionRequestParameters request, RequestOptions requestOptions) { @@ -156,32 +183,40 @@ public CompletableFuture get( } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

<b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

+ * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

*/ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

<b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

+ * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

*/ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

<b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

+ * Update details for a specific connection, including option properties for identity provider configuration. + *

Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

*/ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

<b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

+ * Update details for a specific connection, including option properties for identity provider configuration. + *

Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

+ */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update details for a specific connection, including option properties for identity provider configuration. + *

Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

*/ public CompletableFuture update( String id, UpdateConnectionRequestContent request) { @@ -189,8 +224,8 @@ public CompletableFuture update( } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

<b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

+ * Update details for a specific connection, including option properties for identity provider configuration. + *

Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

*/ public CompletableFuture update( String id, UpdateConnectionRequestContent request, RequestOptions requestOptions) { @@ -198,14 +233,14 @@ public CompletableFuture update( } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public CompletableFuture checkStatus(String id) { return this.rawClient.checkStatus(id).thenApply(response -> response.body()); } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public CompletableFuture checkStatus(String id, RequestOptions requestOptions) { return this.rawClient.checkStatus(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java index 9ebe7679c..be8502d7d 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncCustomDomainsClient.java @@ -35,21 +35,28 @@ public AsyncRawCustomDomainsClient withRawResponse() { } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details on custom domains. */ public CompletableFuture> list(ListCustomDomainsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public CompletableFuture> list( ListCustomDomainsRequestParameters request, RequestOptions requestOptions) { @@ -128,11 +135,11 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) *
  • custom_client_ip_header
  • *
  • tls_policy
  • * - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -140,7 +147,7 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public CompletableFuture update(String id) { @@ -154,11 +161,37 @@ public CompletableFuture update(String id) { *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to + * send should be: + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    + *

    TLS Policies:

    + *
      + *
    • recommended - for modern usage this includes TLS 1.2 only
    • + *
    + *

    Some considerations:

    + *
      + *
    • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
    • + *
    • The compatible TLS policy is no longer supported.
    • + *
    + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update a custom domain. + *

    These are the attributes that can be updated:

    + *
      + *
    • custom_client_ip_header
    • + *
    • tls_policy
    • + *
    + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -166,7 +199,7 @@ public CompletableFuture update(String id) { *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public CompletableFuture update( @@ -181,11 +214,11 @@ public CompletableFuture update( *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -193,7 +226,7 @@ public CompletableFuture update( *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public CompletableFuture update( @@ -217,10 +250,10 @@ public CompletableFuture test(String id, Reques /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public CompletableFuture verify(String id) { return this.rawClient.verify(id).thenApply(response -> response.body()); @@ -228,10 +261,10 @@ public CompletableFuture verify(String id) { /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public CompletableFuture verify(String id, RequestOptions requestOptions) { return this.rawClient.verify(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/AsyncDeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncDeviceCredentialsClient.java index 42608db48..9f3a40a5b 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncDeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncDeviceCredentialsClient.java @@ -30,14 +30,21 @@ public AsyncRawDeviceCredentialsClient withRawResponse() { } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public CompletableFuture> list( ListDeviceCredentialsRequestParameters request) { @@ -45,7 +52,7 @@ public CompletableFuture> list( } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public CompletableFuture> list( ListDeviceCredentialsRequestParameters request, RequestOptions requestOptions) { @@ -53,8 +60,8 @@ public CompletableFuture> list( } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public CompletableFuture createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request) { @@ -62,8 +69,8 @@ public CompletableFuture createP } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public CompletableFuture createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncEmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncEmailTemplatesClient.java index 7fbcf2397..774b71fbf 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncEmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncEmailTemplatesClient.java @@ -85,6 +85,14 @@ public CompletableFuture update(EmailTemplat return this.rawClient.update(templateName).thenApply(response -> response.body()); } + /** + * Modify an email template. + */ + public CompletableFuture update( + EmailTemplateNameEnum templateName, RequestOptions requestOptions) { + return this.rawClient.update(templateName, requestOptions).thenApply(response -> response.body()); + } + /** * Modify an email template. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncEventStreamsClient.java index bf26909a0..848b81ddc 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncEventStreamsClient.java @@ -48,6 +48,10 @@ public CompletableFuture> list() return this.rawClient.list().thenApply(response -> response.body()); } + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( ListEventStreamsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -87,6 +91,10 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update( String id, UpdateEventStreamRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/AsyncFlowsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncFlowsClient.java index b62fccf64..0d26afb4c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncFlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncFlowsClient.java @@ -47,6 +47,10 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list(ListFlowsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } @@ -69,6 +73,10 @@ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture get(String id, GetFlowRequestParameters request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } @@ -90,6 +98,10 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update(String id, UpdateFlowRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncFormsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncFormsClient.java index 5a99a34d4..6a3b6b9e1 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncFormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncFormsClient.java @@ -37,6 +37,10 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list(ListFormsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } @@ -59,6 +63,10 @@ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture get(String id, GetFormRequestParameters request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } @@ -80,6 +88,10 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update(String id, UpdateFormRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java index 4876e6440..7015f6561 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncGroupsClient.java @@ -41,6 +41,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * List all groups in your tenant. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * List all groups in your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncHooksClient.java b/src/main/java/com/auth0/client/mgmt/AsyncHooksClient.java index 10589d7bc..86a72611b 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncHooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncHooksClient.java @@ -40,21 +40,28 @@ public AsyncRawHooksClient withRawResponse() { } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture> list(ListHooksRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture> list( ListHooksRequestParameters request, RequestOptions requestOptions) { @@ -77,21 +84,28 @@ public CompletableFuture create( } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public CompletableFuture get(String id, GetHookRequestParameters request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public CompletableFuture get( String id, GetHookRequestParameters request, RequestOptions requestOptions) { @@ -119,6 +133,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update an existing hook. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update an existing hook. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncLogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncLogStreamsClient.java index 529385924..d7e08394c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncLogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncLogStreamsClient.java @@ -32,8 +32,8 @@ public AsyncRawLogStreamsClient withRawResponse() { } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -97,15 +97,15 @@ public AsyncRawLogStreamsClient withRawResponse() {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -169,7 +169,7 @@ public CompletableFuture> list() {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public CompletableFuture> list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).thenApply(response -> response.body()); @@ -177,9 +177,9 @@ public CompletableFuture> list(RequestOptions requ /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -188,8 +188,8 @@ public CompletableFuture> list(RequestOptions requ
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -200,17 +200,17 @@ public CompletableFuture> list(RequestOptions requ
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -220,9 +220,9 @@ public CompletableFuture> list(RequestOptions requ
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -230,8 +230,8 @@ public CompletableFuture> list(RequestOptions requ
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -242,17 +242,17 @@ public CompletableFuture> list(RequestOptions requ
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -261,9 +261,9 @@ public CompletableFuture> list(RequestOptions requ
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -272,8 +272,8 @@ public CompletableFuture> list(RequestOptions requ
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -284,16 +284,16 @@ public CompletableFuture> list(RequestOptions requ
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -301,7 +301,7 @@ public CompletableFuture> list(RequestOptions requ
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public CompletableFuture create(CreateLogStreamRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); @@ -309,9 +309,9 @@ public CompletableFuture create(CreateLogStreamR /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -320,8 +320,8 @@ public CompletableFuture create(CreateLogStreamR
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -332,17 +332,17 @@ public CompletableFuture create(CreateLogStreamR
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -352,9 +352,9 @@ public CompletableFuture create(CreateLogStreamR
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -362,8 +362,8 @@ public CompletableFuture create(CreateLogStreamR
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -374,17 +374,17 @@ public CompletableFuture create(CreateLogStreamR
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -393,9 +393,9 @@ public CompletableFuture create(CreateLogStreamR
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -404,8 +404,8 @@ public CompletableFuture create(CreateLogStreamR
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -416,16 +416,16 @@ public CompletableFuture create(CreateLogStreamR
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -433,7 +433,7 @@ public CompletableFuture create(CreateLogStreamR
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public CompletableFuture create( CreateLogStreamRequestContent request, RequestOptions requestOptions) { @@ -442,7 +442,7 @@ public CompletableFuture create( /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -452,7 +452,7 @@ public CompletableFuture create(
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -463,7 +463,7 @@ public CompletableFuture create(
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -472,8 +472,8 @@ public CompletableFuture create(
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -482,10 +482,10 @@ public CompletableFuture create(
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -496,19 +496,19 @@ public CompletableFuture create(
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -516,9 +516,9 @@ public CompletableFuture create(
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -529,7 +529,7 @@ public CompletableFuture create(
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -537,10 +537,10 @@ public CompletableFuture create(
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); @@ -548,7 +548,7 @@ public CompletableFuture get(String id) { /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -558,7 +558,7 @@ public CompletableFuture get(String id) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -569,7 +569,7 @@ public CompletableFuture get(String id) {
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -578,8 +578,8 @@ public CompletableFuture get(String id) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -588,10 +588,10 @@ public CompletableFuture get(String id) {
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -602,19 +602,19 @@ public CompletableFuture get(String id) {
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -622,9 +622,9 @@ public CompletableFuture get(String id) {
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -635,7 +635,7 @@ public CompletableFuture get(String id) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -643,10 +643,10 @@ public CompletableFuture get(String id) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -668,40 +668,40 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); @@ -709,40 +709,81 @@ public CompletableFuture update(String id) { /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update a log stream. + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
      +     * 	"status": "active|paused"
      +     * }
      + *
      Update the name of a log stream
      {
      +     * 	"name": "string"
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
      +     *   "sink": {
      +     *     "httpEndpoint": "string",
      +     *     "httpContentType": "string",
      +     *     "httpContentFormat": "JSONARRAY|JSONLINES",
      +     *     "httpAuthorization": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
      +     *   "sink": {
      +     * 		"datadogRegion": "string",
      +     * 		"datadogApiKey": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
      +     *   "sink": {
      +     *     "splunkDomain": "string",
      +     *     "splunkToken": "string",
      +     *     "splunkPort": "string",
      +     *     "splunkSecure": "boolean"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
      +     *   "sink": {
      +     *     "sumoSourceAddress": "string"
      +     *   }
      +     * }

      */ public CompletableFuture update(String id, UpdateLogStreamRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); @@ -750,40 +791,40 @@ public CompletableFuture update(String id, Updat /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public CompletableFuture update( String id, UpdateLogStreamRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncLogsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncLogsClient.java index ba75398c9..ba700065f 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncLogsClient.java @@ -30,26 +30,26 @@ public AsyncRawLogsClient withRawResponse() { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); @@ -57,26 +57,53 @@ public CompletableFuture> list() { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public CompletableFuture> list(ListLogsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -84,26 +111,26 @@ public CompletableFuture> list(ListLogsRequestParameters /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public CompletableFuture> list( ListLogsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncManagementApiBuilder.java b/src/main/java/com/auth0/client/mgmt/AsyncManagementApiBuilder.java index d6af5f882..84e1bedd2 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncManagementApiBuilder.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncManagementApiBuilder.java @@ -23,6 +23,8 @@ public class AsyncManagementApiBuilder { private OkHttpClient httpClient; + private String tenantDomain; + /** * Sets token */ @@ -78,6 +80,11 @@ public AsyncManagementApiBuilder addHeader(String name, String value) { return this; } + public AsyncManagementApiBuilder tenantDomain(String tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + protected ClientOptions buildClientOptions() { ClientOptions.Builder builder = ClientOptions.builder(); setEnvironment(builder); @@ -99,6 +106,11 @@ protected ClientOptions buildClientOptions() { * @param builder The ClientOptions.Builder to configure */ protected void setEnvironment(ClientOptions.Builder builder) { + if (this.tenantDomain != null) { + String _tenantDomain = this.tenantDomain != null ? this.tenantDomain : "{TENANT}.auth0.com"; + this.environment = + Environment.custom("https://{tenantDomain}/api/v2".replace("{tenantDomain}", _tenantDomain)); + } builder.environment(this.environment); } diff --git a/src/main/java/com/auth0/client/mgmt/AsyncNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncNetworkAclsClient.java index ce4023d31..cd5be5d05 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncNetworkAclsClient.java @@ -40,6 +40,13 @@ public CompletableFuture> list() return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Get all access control list entries for your client. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Get all access control list entries for your client. */ @@ -120,6 +127,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update existing access control list for your client. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update existing access control list for your client. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java index 0fcc037a6..5489a3809 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java @@ -58,18 +58,18 @@ public AsyncRawOrganizationsClient withRawResponse() { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); @@ -78,18 +78,38 @@ public CompletableFuture> list() { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture> list(ListOrganizationsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -98,18 +118,18 @@ public CompletableFuture> list(ListOrganization /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture> list( ListOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -117,14 +137,14 @@ public CompletableFuture> list( } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public CompletableFuture create(CreateOrganizationRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public CompletableFuture create( CreateOrganizationRequestContent request, RequestOptions requestOptions) { @@ -162,7 +182,7 @@ public CompletableFuture get(String id, RequestO /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); @@ -170,21 +190,28 @@ public CompletableFuture delete(String id) { /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public CompletableFuture update( String id, UpdateOrganizationRequestContent request) { @@ -192,7 +219,7 @@ public CompletableFuture update( } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public CompletableFuture update( String id, UpdateOrganizationRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncPromptsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncPromptsClient.java index fc6d9bdf7..ea03ef715 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncPromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncPromptsClient.java @@ -42,35 +42,42 @@ public AsyncRawPromptsClient withRawResponse() { } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture getSettings() { return this.rawClient.getSettings().thenApply(response -> response.body()); } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture getSettings(RequestOptions requestOptions) { return this.rawClient.getSettings(requestOptions).thenApply(response -> response.body()); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture updateSettings() { return this.rawClient.updateSettings().thenApply(response -> response.body()); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. + */ + public CompletableFuture updateSettings(RequestOptions requestOptions) { + return this.rawClient.updateSettings(requestOptions).thenApply(response -> response.body()); + } + + /** + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture updateSettings(UpdateSettingsRequestContent request) { return this.rawClient.updateSettings(request).thenApply(response -> response.body()); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture updateSettings( UpdateSettingsRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java index 0e97f91a2..a327a57ef 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawActionsClient.java @@ -60,6 +60,14 @@ public CompletableFuture>> return list(ListActionsRequestParameters.builder().build()); } + /** + * Retrieve all actions. + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListActionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all actions. */ @@ -95,6 +103,11 @@ public CompletableFuture>> QueryStringMapper.addQueryParameter( httpUrl, "installed", request.getInstalled().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -191,10 +204,14 @@ public CompletableFuture> */ public CompletableFuture> create( CreateActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/actions") - .build(); + .addPathSegments("actions/actions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -203,7 +220,7 @@ public CompletableFuture> throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -281,13 +298,17 @@ public CompletableFuture> ge */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -363,6 +384,13 @@ public CompletableFuture> delete(String id) { return delete(id, DeleteActionRequestParameters.builder().build()); } + /** + * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. + */ + public CompletableFuture> delete(String id, RequestOptions requestOptions) { + return delete(id, DeleteActionRequestParameters.builder().build(), requestOptions); + } + /** * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. */ @@ -383,6 +411,11 @@ public CompletableFuture> delete( QueryStringMapper.addQueryParameter( httpUrl, "force", request.getForce().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -452,14 +485,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture> update(String id) { return update(id, UpdateActionRequestContent.builder().build()); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateActionRequestContent.builder().build(), requestOptions); + } + + /** + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture> update( String id, UpdateActionRequestContent request) { @@ -467,15 +508,19 @@ public CompletableFuture> } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public CompletableFuture> update( String id, UpdateActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -484,7 +529,7 @@ public CompletableFuture> throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -567,14 +612,18 @@ public CompletableFuture> */ public CompletableFuture> deploy( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(id) - .addPathSegments("deploy") - .build(); + .addPathSegments("deploy"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -652,12 +701,16 @@ public CompletableFuture> t */ public CompletableFuture> test( String id, TestActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -666,7 +719,7 @@ public CompletableFuture> t throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java index 09c82ac52..8ad46d304 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawBrandingClient.java @@ -49,12 +49,16 @@ public CompletableFuture> * Retrieve branding settings. */ public CompletableFuture> get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding") - .build(); + .addPathSegments("branding"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -121,6 +125,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateBrandingRequestContent.builder().build(), requestOptions); + } + /** * Update branding settings. */ @@ -134,10 +146,14 @@ public CompletableFuture> update( UpdateBrandingRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding") - .build(); + .addPathSegments("branding"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -146,7 +162,7 @@ public CompletableFutureclient grants, including the scopes associated with the application/API pair. */ public CompletableFuture>> list() { return list(ListClientGrantsRequestParameters.builder().build()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListClientGrantsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public CompletableFuture>> list( ListClientGrantsRequestParameters request) { @@ -67,7 +75,7 @@ public CompletableFutureclient grants, including the scopes associated with the application/API pair. */ public CompletableFuture>> list( ListClientGrantsRequestParameters request, RequestOptions requestOptions) { @@ -98,6 +106,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -178,7 +191,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CompletableFuture> create( CreateClientGrantRequestContent request) { @@ -186,14 +199,18 @@ public CompletableFutureClient Credential Flow. */ public CompletableFuture> create( CreateClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("client-grants") - .build(); + .addPathSegments("client-grants"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -202,7 +219,7 @@ public CompletableFutureclient grant, including the * scopes associated with the application/API pair. */ public CompletableFuture> get(String id) { @@ -288,18 +305,22 @@ public CompletableFutureclient grant, including the * scopes associated with the application/API pair. */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -365,23 +386,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -450,6 +475,14 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateClientGrantRequestContent.builder().build(), requestOptions); + } + /** * Update a client grant. */ @@ -463,11 +496,15 @@ public CompletableFuture> update( String id, UpdateClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -476,7 +513,7 @@ public CompletableFuture<ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public CompletableFuture>> list() { return list(ListClientsRequestParameters.builder().build()); @@ -92,37 +92,76 @@ public CompletableFuture>> /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListClientsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • + * The following can be retrieved with any scope: + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public CompletableFuture>> list( ListClientsRequestParameters request) { @@ -131,37 +170,37 @@ public CompletableFuture>> /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public CompletableFuture>> list( ListClientsRequestParameters request, RequestOptions requestOptions) { @@ -196,6 +235,11 @@ public CompletableFuture>> if (!request.getQ().isAbsent()) { QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -280,20 +324,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

      */ public CompletableFuture> create( CreateClientRequestContent request) { @@ -301,27 +345,31 @@ public CompletableFuture> } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read
      Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

      */ public CompletableFuture> create( CreateClientRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("clients") - .build(); + .addPathSegments("clients"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -330,7 +378,7 @@ public CompletableFuture> throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -403,36 +451,36 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public CompletableFuture> get(String id) { return get(id, GetClientRequestParameters.builder().build()); @@ -440,36 +488,74 @@ public CompletableFuture> ge /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • + * The following properties can be retrieved with any of the scopes: + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return get(id, GetClientRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public CompletableFuture> get( String id, GetClientRequestParameters request) { @@ -478,36 +564,36 @@ public CompletableFuture> ge /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public CompletableFuture> get( String id, GetClientRequestParameters request, RequestOptions requestOptions) { @@ -523,6 +609,11 @@ public CompletableFuture> ge QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -604,13 +695,17 @@ public CompletableFuture> delete(String id) { * Delete a client and related configuration (rules, connections, etc). */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -673,15 +768,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public CompletableFuture> update(String id) { @@ -689,15 +784,32 @@ public CompletableFuture> } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • + *
      + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateClientRequestContent.builder().build(), requestOptions); + } + + /** + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. + *

      Notes:

      + *
        + *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public CompletableFuture> update( @@ -706,24 +818,28 @@ public CompletableFuture> } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public CompletableFuture> update( String id, UpdateClientRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -732,7 +848,7 @@ public CompletableFuture> throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -806,7 +922,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Rotate a client secret. *

      This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

      - *

      For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

      + *

      For more information, read Rotate Client Secrets.

      */ public CompletableFuture> rotateSecret(String id) { return rotateSecret(id, null); @@ -815,18 +931,22 @@ public CompletableFutureThis endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

      - *

      For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

      + *

      For more information, read Rotate Client Secrets.

      */ public CompletableFuture> rotateSecret( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(id) - .addPathSegments("rotate-secret") - .build(); + .addPathSegments("rotate-secret"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java index 1f2a5f77d..ffab1d5a6 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawConnectionProfilesClient.java @@ -60,6 +60,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListConnectionProfileRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. */ @@ -81,6 +89,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -180,10 +193,14 @@ public CompletableFuture> create( CreateConnectionProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connection-profiles") - .build(); + .addPathSegments("connection-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -192,7 +209,7 @@ public CompletableFuture> listTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connection-profiles/templates") - .build(); + .addPathSegments("connection-profiles/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -355,13 +376,17 @@ public CompletableFuture> getTemplate( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -439,13 +464,17 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -522,13 +551,17 @@ public CompletableFuture> delete(String id) { * Delete a single Connection Profile specified by ID. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -592,6 +625,14 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateConnectionProfileRequestContent.builder().build(), requestOptions); + } + /** * Update the details of a specific Connection Profile. */ @@ -605,11 +646,15 @@ public CompletableFuture> update( String id, UpdateConnectionProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -618,7 +663,7 @@ public CompletableFutureconnections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list() { return list(ListConnectionsQueryParameters.builder().build()); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListConnectionsQueryParameters.builder().build(), requestOptions); + } + + /** + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list( ListConnectionsQueryParameters request) { @@ -94,20 +115,20 @@ public CompletableFutureconnections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list( ListConnectionsQueryParameters request, RequestOptions requestOptions) { @@ -135,6 +156,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -221,8 +247,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

      <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      + * Creates a new connection according to the JSON object received in body. + *

      Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      */ public CompletableFuture> create( CreateConnectionRequestContent request) { @@ -230,15 +256,19 @@ public CompletableFuture<b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      + * Creates a new connection according to the JSON object received in body. + *

      Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      */ public CompletableFuture> create( CreateConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connections") - .build(); + .addPathSegments("connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -247,7 +277,7 @@ public CompletableFutureconnection along with options that can be used for identity provider configuration. */ public CompletableFuture> get(String id) { return get(id, GetConnectionRequestParameters.builder().build()); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return get(id, GetConnectionRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public CompletableFuture> get( String id, GetConnectionRequestParameters request) { @@ -335,7 +373,7 @@ public CompletableFuture } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public CompletableFuture> get( String id, GetConnectionRequestParameters request, RequestOptions requestOptions) { @@ -351,6 +389,11 @@ public CompletableFuture QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -423,25 +466,29 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

      <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

      + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

      Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

      */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

      <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

      + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

      Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

      */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -504,16 +551,25 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

      <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public CompletableFuture> update(String id) { return update(id, UpdateConnectionRequestContent.builder().build()); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

      <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateConnectionRequestContent.builder().build(), requestOptions); + } + + /** + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public CompletableFuture> update( String id, UpdateConnectionRequestContent request) { @@ -521,16 +577,20 @@ public CompletableFuture<b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public CompletableFuture> update( String id, UpdateConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -539,7 +599,7 @@ public CompletableFutureID
      . 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public CompletableFuture> checkStatus(String id) { return checkStatus(id, null); } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public CompletableFuture> checkStatus(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("status") - .build(); + .addPathSegments("status"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java index 9d06bddcb..0f0e3c6ef 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawCustomDomainsClient.java @@ -50,14 +50,21 @@ public AsyncRawCustomDomainsClient(ClientOptions clientOptions) { } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public CompletableFuture>> list() { return list(ListCustomDomainsRequestParameters.builder().build()); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. + */ + public CompletableFuture>> list(RequestOptions requestOptions) { + return list(ListCustomDomainsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details on custom domains. */ public CompletableFuture>> list( ListCustomDomainsRequestParameters request) { @@ -65,7 +72,7 @@ public CompletableFuture>> list( } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public CompletableFuture>> list( ListCustomDomainsRequestParameters request, RequestOptions requestOptions) { @@ -87,6 +94,11 @@ public CompletableFuture>> list( QueryStringMapper.addQueryParameter( httpUrl, "sort", request.getSort().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -183,10 +195,14 @@ public CompletableFuture> create( CreateCustomDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("custom-domains") - .build(); + .addPathSegments("custom-domains"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +211,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -366,13 +386,17 @@ public CompletableFuture> delete(String id) { * Delete a custom domain and stop serving requests for it. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -441,11 +465,11 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -453,7 +477,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public CompletableFuture> update(String id) { @@ -467,11 +491,11 @@ public CompletableFuturecustom_client_ip_header *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -479,7 +503,34 @@ public CompletableFutureSome considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • + *
      + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateCustomDomainRequestContent.builder().build(), requestOptions); + } + + /** + * Update a custom domain. + *

      These are the attributes that can be updated:

      + *
        + *
      • custom_client_ip_header
      • + *
      • tls_policy
      • + *
      + *

      Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
      To update the custom_client_ip_header for a domain, the body to + * send should be: + *
      { "custom_client_ip_header": "cf-connecting-ip" }

      + *

      Updating TLS_POLICY for a custom domain
      To update the tls_policy for a domain, the body to send should be: + *
      { "tls_policy": "recommended" }

      + *

      TLS Policies:

      + *
        + *
      • recommended - for modern usage this includes TLS 1.2 only
      • + *
      + *

      Some considerations:

      + *
        + *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public CompletableFuture> update( @@ -494,11 +545,11 @@ public CompletableFuturecustom_client_ip_header *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -506,16 +557,20 @@ public CompletableFutureSome considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public CompletableFuture> update( String id, UpdateCustomDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -524,7 +579,7 @@ public CompletableFuture> test( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -683,10 +742,10 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public CompletableFuture> verify(String id) { return verify(id, null); @@ -694,21 +753,25 @@ public CompletableFutureNote: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public CompletableFuture> verify( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") .addPathSegment(id) - .addPathSegments("verify") - .build(); + .addPathSegments("verify"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java index d5b06e3db..e658acf47 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawDeviceCredentialsClient.java @@ -47,14 +47,22 @@ public AsyncRawDeviceCredentialsClient(ClientOptions clientOptions) { } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public CompletableFuture>> list() { return list(ListDeviceCredentialsRequestParameters.builder().build()); } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListDeviceCredentialsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public CompletableFuture>> list( ListDeviceCredentialsRequestParameters request) { @@ -62,7 +70,7 @@ public CompletableFuturepublic_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public CompletableFuture>> list( ListDeviceCredentialsRequestParameters request, RequestOptions requestOptions) { @@ -94,6 +102,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -182,8 +195,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public CompletableFuture> createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request) { @@ -191,15 +204,19 @@ public CompletableFutureWhen refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public CompletableFuture> createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("device-credentials") - .build(); + .addPathSegments("device-credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -208,7 +225,7 @@ public CompletableFuture> delete(String id) { * Permanently delete a device credential (such as a refresh token or public key) with the given ID. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("device-credentials") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java index d5cdc01ed..ec7b9bb8d 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEmailTemplatesClient.java @@ -58,10 +58,14 @@ public CompletableFuture> create( CreateEmailTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("email-templates") - .build(); + .addPathSegments("email-templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -70,7 +74,7 @@ public CompletableFuture> get( EmailTemplateNameEnum templateName, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("email-templates") - .addPathSegment(templateName.toString()) - .build(); + .addPathSegment(templateName.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -240,11 +248,15 @@ public CompletableFuture> set( EmailTemplateNameEnum templateName, SetEmailTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("email-templates") - .addPathSegment(templateName.toString()) - .build(); + .addPathSegment(templateName.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -253,7 +265,7 @@ public CompletableFuture> update( + EmailTemplateNameEnum templateName, RequestOptions requestOptions) { + return update(templateName, UpdateEmailTemplateRequestContent.builder().build(), requestOptions); + } + /** * Modify an email template. */ @@ -348,11 +368,15 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -361,7 +385,7 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListEventStreamsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( ListEventStreamsRequestParameters request) { return list(request, null); @@ -72,6 +77,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -163,10 +173,14 @@ public CompletableFuture> create( EventStreamsCreateRequest request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("event-streams") - .build(); + .addPathSegments("event-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -175,7 +189,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -329,13 +347,17 @@ public CompletableFuture> delete(String id) { } public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -401,6 +423,11 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateEventStreamRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( String id, UpdateEventStreamRequestContent request) { return update(id, request, null); @@ -408,11 +435,15 @@ public CompletableFuture> update( String id, UpdateEventStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -421,7 +452,7 @@ public CompletableFuture> test( String id, CreateEventStreamTestEventRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -509,7 +544,7 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListFlowsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( ListFlowsRequestParameters request) { return list(request, null); @@ -77,6 +82,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -168,10 +178,14 @@ public CompletableFuture> c public CompletableFuture> create( CreateFlowRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("flows") - .build(); + .addPathSegments("flows"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -180,7 +194,7 @@ public CompletableFuture> c throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -250,6 +264,11 @@ public CompletableFuture> get( return get(id, GetFlowRequestParameters.builder().build()); } + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return get(id, GetFlowRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture> get( String id, GetFlowRequestParameters request) { return get(id, request, null); @@ -265,6 +284,11 @@ public CompletableFuture> get( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -340,13 +364,17 @@ public CompletableFuture> delete(String id) { } public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -417,6 +445,11 @@ public CompletableFuture> u return update(id, UpdateFlowRequestContent.builder().build()); } + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateFlowRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( String id, UpdateFlowRequestContent request) { return update(id, request, null); @@ -424,11 +457,15 @@ public CompletableFuture> u public CompletableFuture> update( String id, UpdateFlowRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -437,7 +474,7 @@ public CompletableFuture> u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java index b7337791b..9594af964 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawFormsClient.java @@ -54,6 +54,11 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListFormsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( ListFormsRequestParameters request) { return list(request, null); @@ -73,6 +78,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -164,10 +174,14 @@ public CompletableFuture> c public CompletableFuture> create( CreateFormRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("forms") - .build(); + .addPathSegments("forms"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -176,7 +190,7 @@ public CompletableFuture> c throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -246,6 +260,11 @@ public CompletableFuture> get( return get(id, GetFormRequestParameters.builder().build()); } + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return get(id, GetFormRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture> get( String id, GetFormRequestParameters request) { return get(id, request, null); @@ -261,6 +280,11 @@ public CompletableFuture> get( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -336,13 +360,17 @@ public CompletableFuture> delete(String id) { } public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("forms") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -408,6 +436,11 @@ public CompletableFuture> u return update(id, UpdateFormRequestContent.builder().build()); } + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateFormRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( String id, UpdateFormRequestContent request) { return update(id, request, null); @@ -415,11 +448,15 @@ public CompletableFuture> u public CompletableFuture> update( String id, UpdateFormRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("forms") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -428,7 +465,7 @@ public CompletableFuture> u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java index 03599bae7..ab591ced9 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java @@ -50,6 +50,13 @@ public CompletableFuture>> l return list(ListGroupsRequestParameters.builder().build()); } + /** + * List all groups in your tenant. + */ + public CompletableFuture>> list(RequestOptions requestOptions) { + return list(ListGroupsRequestParameters.builder().build(), requestOptions); + } + /** * List all groups in your tenant. */ @@ -91,6 +98,11 @@ public CompletableFuture>> l httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -184,13 +196,17 @@ public CompletableFuture> get */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("groups") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java index d28cfee6e..27410a0d3 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawHooksClient.java @@ -52,14 +52,21 @@ public AsyncRawHooksClient(ClientOptions clientOptions) { } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture>> list() { return list(ListHooksRequestParameters.builder().build()); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. + */ + public CompletableFuture>> list(RequestOptions requestOptions) { + return list(ListHooksRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture>> list( ListHooksRequestParameters request) { @@ -67,7 +74,7 @@ public CompletableFuture>> li } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture>> list( ListHooksRequestParameters request, RequestOptions requestOptions) { @@ -91,6 +98,11 @@ public CompletableFuture>> li QueryStringMapper.addQueryParameter( httpUrl, "triggerId", request.getTriggerId().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -192,10 +204,14 @@ public CompletableFuture> c */ public CompletableFuture> create( CreateHookRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("hooks") - .build(); + .addPathSegments("hooks"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -204,7 +220,7 @@ public CompletableFuture> c throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -276,14 +292,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public CompletableFuture> get(String id) { return get(id, GetHookRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return get(id, GetHookRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public CompletableFuture> get( String id, GetHookRequestParameters request) { @@ -291,7 +315,7 @@ public CompletableFuture> get( } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public CompletableFuture> get( String id, GetHookRequestParameters request, RequestOptions requestOptions) { @@ -303,6 +327,11 @@ public CompletableFuture> get( QueryStringMapper.addQueryParameter( httpUrl, "fields", request.getFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -384,13 +413,17 @@ public CompletableFuture> delete(String id) { * Delete a hook. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -459,6 +492,14 @@ public CompletableFuture> u return update(id, UpdateHookRequestContent.builder().build()); } + /** + * Update an existing hook. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateHookRequestContent.builder().build(), requestOptions); + } + /** * Update an existing hook. */ @@ -472,11 +513,15 @@ public CompletableFuture> u */ public CompletableFuture> update( String id, UpdateHookRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -485,7 +530,7 @@ public CompletableFuture> u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java index 11807f637..fefa3dccd 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawJobsClient.java @@ -47,13 +47,17 @@ public CompletableFuture> get(S */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java index aa7e7964c..70770a881 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawLogStreamsClient.java @@ -46,8 +46,8 @@ public AsyncRawLogStreamsClient(ClientOptions clientOptions) { } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -111,15 +111,15 @@ public AsyncRawLogStreamsClient(ClientOptions clientOptions) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public CompletableFuture>> list() { return list(null); } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -183,16 +183,20 @@ public CompletableFuture
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public CompletableFuture>> list( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("log-streams") - .build(); + .addPathSegments("log-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -259,9 +263,9 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -270,8 +274,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -282,17 +286,17 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -302,9 +306,9 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -312,8 +316,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -324,17 +328,17 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -343,9 +347,9 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -354,8 +358,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -366,16 +370,16 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -383,7 +387,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public CompletableFuture> create( CreateLogStreamRequestContent request) { @@ -392,9 +396,9 @@ public CompletableFuture<h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -403,8 +407,8 @@ public CompletableFuture
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -415,17 +419,17 @@ public CompletableFuture
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -435,9 +439,9 @@ public CompletableFuture
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -445,8 +449,8 @@ public CompletableFuture
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -457,17 +461,17 @@ public CompletableFuture
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -476,9 +480,9 @@ public CompletableFuture
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -487,8 +491,8 @@ public CompletableFuture
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -499,16 +503,16 @@ public CompletableFuture
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -516,14 +520,18 @@ public CompletableFuture
      +     * }

      */ public CompletableFuture> create( CreateLogStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("log-streams") - .build(); + .addPathSegments("log-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -532,7 +540,7 @@ public CompletableFuture<h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -615,7 +623,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -626,7 +634,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -635,8 +643,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -645,10 +653,10 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -659,19 +667,19 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -679,9 +687,9 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -692,7 +700,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -700,10 +708,10 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public CompletableFuture> get(String id) { return get(id, null); @@ -711,7 +719,7 @@ public CompletableFuture> /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -721,7 +729,7 @@ public CompletableFuture>
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -732,7 +740,7 @@ public CompletableFuture>
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -741,8 +749,8 @@ public CompletableFuture>
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -751,10 +759,10 @@ public CompletableFuture>
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -765,19 +773,19 @@ public CompletableFuture>
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -785,9 +793,9 @@ public CompletableFuture>
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -798,7 +806,7 @@ public CompletableFuture>
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -806,20 +814,24 @@ public CompletableFuture>
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -895,13 +907,17 @@ public CompletableFuture> delete(String id) { * Delete a log stream. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -970,40 +986,40 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public CompletableFuture> update(String id) { return update(id, UpdateLogStreamRequestContent.builder().build()); @@ -1011,40 +1027,82 @@ public CompletableFuture<h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
      +     * 	"status": "active|paused"
      +     * }
      + *
      Update the name of a log stream
      {
      +     * 	"name": "string"
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
      +     *   "sink": {
      +     *     "httpEndpoint": "string",
      +     *     "httpContentType": "string",
      +     *     "httpContentFormat": "JSONARRAY|JSONLINES",
      +     *     "httpAuthorization": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
      +     *   "sink": {
      +     * 		"datadogRegion": "string",
      +     * 		"datadogApiKey": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
      +     *   "sink": {
      +     *     "splunkDomain": "string",
      +     *     "splunkToken": "string",
      +     *     "splunkPort": "string",
      +     *     "splunkSecure": "boolean"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
      +     *   "sink": {
      +     *     "sumoSourceAddress": "string"
      +     *   }
      +     * }

      + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateLogStreamRequestContent.builder().build(), requestOptions); + } + + /** + * Update a log stream. + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public CompletableFuture> update( String id, UpdateLogStreamRequestContent request) { @@ -1053,48 +1111,52 @@ public CompletableFuture<h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public CompletableFuture> update( String id, UpdateLogStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -1103,7 +1165,7 @@ public CompletableFutureSet custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public CompletableFuture>> list() { return list(ListLogsRequestParameters.builder().build()); @@ -72,26 +72,53 @@ public CompletableFuture>> lis /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      + */ + public CompletableFuture>> list(RequestOptions requestOptions) { + return list(ListLogsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public CompletableFuture>> list( ListLogsRequestParameters request) { @@ -100,26 +127,26 @@ public CompletableFuture>> lis /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public CompletableFuture>> list( ListLogsRequestParameters request, RequestOptions requestOptions) { @@ -147,6 +174,11 @@ public CompletableFuture>> lis QueryStringMapper.addQueryParameter( httpUrl, "search", request.getSearch().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -242,13 +274,17 @@ public CompletableFuture> get(S */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("logs") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java index f5d815ae3..2accd1740 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawNetworkAclsClient.java @@ -59,6 +59,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListNetworkAclsRequestParameters.builder().build(), requestOptions); + } + /** * Get all access control list entries for your client. */ @@ -80,6 +88,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -178,10 +191,14 @@ public CompletableFuture> create(CreateNetworkAc */ public CompletableFuture> create( CreateNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("network-acls") - .build(); + .addPathSegments("network-acls"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -190,7 +207,7 @@ public CompletableFuture> create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -275,13 +292,17 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -359,11 +380,15 @@ public CompletableFuture> set( String id, SetNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -372,7 +397,7 @@ public CompletableFuture> delete(String id) { * Delete existing access control list for your client. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -534,6 +563,14 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateNetworkAclRequestContent.builder().build(), requestOptions); + } + /** * Update existing access control list for your client. */ @@ -547,11 +584,15 @@ public CompletableFuture> update( String id, UpdateNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -560,7 +601,7 @@ public CompletableFutureThis endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list() { return list(ListOrganizationsRequestParameters.builder().build()); @@ -75,18 +75,39 @@ public CompletableFutureThis endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list( ListOrganizationsRequestParameters request) { @@ -96,18 +117,18 @@ public CompletableFutureThis endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list( ListOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -123,6 +144,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -208,7 +234,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public CompletableFuture> create( CreateOrganizationRequestContent request) { @@ -216,14 +242,18 @@ public CompletableFutureCreate Your First Organization. */ public CompletableFuture> create( CreateOrganizationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("organizations") - .build(); + .addPathSegments("organizations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -232,7 +262,7 @@ public CompletableFuture> getByName( String name, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations/name") - .addPathSegment(name) - .build(); + .addPathSegment(name); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -400,13 +434,17 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -473,7 +511,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public CompletableFuture> delete(String id) { return delete(id, null); @@ -481,16 +519,20 @@ public CompletableFuture> delete(String id) { /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -558,14 +600,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public CompletableFuture> update(String id) { return update(id, UpdateOrganizationRequestContent.builder().build()); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateOrganizationRequestContent.builder().build(), requestOptions); + } + + /** + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public CompletableFuture> update( String id, UpdateOrganizationRequestContent request) { @@ -573,15 +623,19 @@ public CompletableFutureOrganization, such as name and display name, branding options, and metadata. */ public CompletableFuture> update( String id, UpdateOrganizationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -590,7 +644,7 @@ public CompletableFutureIdentifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture> getSettings() { return getSettings(null); } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture> getSettings( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts") - .build(); + .addPathSegments("prompts"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -116,14 +120,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture> updateSettings() { return updateSettings(UpdateSettingsRequestContent.builder().build()); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. + */ + public CompletableFuture> updateSettings( + RequestOptions requestOptions) { + return updateSettings(UpdateSettingsRequestContent.builder().build(), requestOptions); + } + + /** + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture> updateSettings( UpdateSettingsRequestContent request) { @@ -131,14 +143,18 @@ public CompletableFutureIdentifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public CompletableFuture> updateSettings( UpdateSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts") - .build(); + .addPathSegments("prompts"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -147,7 +163,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -133,13 +137,17 @@ public CompletableFuture> delete(String id) { * Delete a refresh token by its ID. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -208,6 +216,14 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateRefreshTokenRequestContent.builder().build(), requestOptions); + } + /** * Update a refresh token by its ID. */ @@ -221,11 +237,15 @@ public CompletableFuture> update( String id, UpdateRefreshTokenRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -234,7 +254,7 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListResourceServerRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details of all APIs associated with your tenant. */ @@ -87,6 +95,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,7 +187,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public CompletableFuture> create( CreateResourceServerRequestContent request) { @@ -182,14 +195,18 @@ public CompletableFuture APIs. */ public CompletableFuture> create( CreateResourceServerRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("resource-servers") - .build(); + .addPathSegments("resource-servers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -198,7 +215,7 @@ public CompletableFutureAPI details with the given ID. */ public CompletableFuture> get(String id) { return get(id, GetResourceServerRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return get(id, GetResourceServerRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve API details with the given ID. */ public CompletableFuture> get( String id, GetResourceServerRequestParameters request) { @@ -286,7 +311,7 @@ public CompletableFutureAPI details with the given ID. */ public CompletableFuture> get( String id, GetResourceServerRequestParameters request, RequestOptions requestOptions) { @@ -298,6 +323,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -371,23 +401,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("resource-servers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -450,14 +484,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public CompletableFuture> update(String id) { return update(id, UpdateResourceServerRequestContent.builder().build()); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateResourceServerRequestContent.builder().build(), requestOptions); + } + + /** + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public CompletableFuture> update( String id, UpdateResourceServerRequestContent request) { @@ -465,15 +507,19 @@ public CompletableFutureAPI Settings. */ public CompletableFuture> update( String id, UpdateResourceServerRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("resource-servers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -482,7 +528,7 @@ public CompletableFuture<b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public CompletableFuture>> list() { return list(ListRolesRequestParameters.builder().build()); @@ -60,7 +60,15 @@ public CompletableFuture>> li /** * Retrieve detailed list of user roles created in your tenant. - *

      <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + */ + public CompletableFuture>> list(RequestOptions requestOptions) { + return list(ListRolesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of user roles created in your tenant. + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public CompletableFuture>> list( ListRolesRequestParameters request) { @@ -69,7 +77,7 @@ public CompletableFuture>> li /** * Retrieve detailed list of user roles created in your tenant. - *

      <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public CompletableFuture>> list( ListRolesRequestParameters request, RequestOptions requestOptions) { @@ -85,6 +93,11 @@ public CompletableFuture>> li QueryStringMapper.addQueryParameter( httpUrl, "name_filter", request.getNameFilter().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -169,8 +182,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

      <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      + * Create a user role for Role-Based Access Control. + *

      Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      */ public CompletableFuture> create( CreateRoleRequestContent request) { @@ -178,15 +191,19 @@ public CompletableFuture> c } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

      <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      + * Create a user role for Role-Based Access Control. + *

      Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      */ public CompletableFuture> create( CreateRoleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +212,7 @@ public CompletableFuture> c throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -267,24 +284,28 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public CompletableFuture> get(String id) { return get(id, null); } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -354,23 +375,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -438,14 +463,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public CompletableFuture> update(String id) { return update(id, UpdateRoleRequestContent.builder().build()); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateRoleRequestContent.builder().build(), requestOptions); + } + + /** + * Modify the details of a specific user role specified by ID. */ public CompletableFuture> update( String id, UpdateRoleRequestContent request) { @@ -453,15 +486,19 @@ public CompletableFuture> u } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public CompletableFuture> update( String id, UpdateRoleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -470,7 +507,7 @@ public CompletableFuture> u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java index f450b876a..16bafce42 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesClient.java @@ -52,14 +52,21 @@ public AsyncRawRulesClient(ClientOptions clientOptions) { } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public CompletableFuture>> list() { return list(ListRulesRequestParameters.builder().build()); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. + */ + public CompletableFuture>> list(RequestOptions requestOptions) { + return list(ListRulesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public CompletableFuture>> list( ListRulesRequestParameters request) { @@ -67,7 +74,7 @@ public CompletableFuture>> li } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public CompletableFuture>> list( ListRulesRequestParameters request, RequestOptions requestOptions) { @@ -91,6 +98,11 @@ public CompletableFuture>> li QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -180,8 +192,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

      Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

      + * Create a new rule. + *

      Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

      */ public CompletableFuture> create( CreateRuleRequestContent request) { @@ -189,15 +201,19 @@ public CompletableFuture> c } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

      Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

      + * Create a new rule. + *

      Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

      */ public CompletableFuture> create( CreateRuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("rules") - .build(); + .addPathSegments("rules"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -206,7 +222,7 @@ public CompletableFuture> c throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -278,14 +294,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture> get(String id) { return get(id, GetRuleRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return get(id, GetRuleRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture> get( String id, GetRuleRequestParameters request) { @@ -293,7 +317,7 @@ public CompletableFuture> get( } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture> get( String id, GetRuleRequestParameters request, RequestOptions requestOptions) { @@ -309,6 +333,11 @@ public CompletableFuture> get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -390,13 +419,17 @@ public CompletableFuture> delete(String id) { * Delete a rule. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -465,6 +498,14 @@ public CompletableFuture> u return update(id, UpdateRuleRequestContent.builder().build()); } + /** + * Update an existing rule. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateRuleRequestContent.builder().build(), requestOptions); + } + /** * Update an existing rule. */ @@ -478,11 +519,15 @@ public CompletableFuture> u */ public CompletableFuture> update( String id, UpdateRuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -491,7 +536,7 @@ public CompletableFuture> u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java index 8e748ce1a..43c04f64a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRulesConfigsClient.java @@ -54,12 +54,16 @@ public CompletableFuture>> list() { *
      */ public CompletableFuture>> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("rules-configs") - .build(); + .addPathSegments("rules-configs"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -132,11 +136,15 @@ public CompletableFuture> set( String key, SetRulesConfigRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules-configs") - .addPathSegment(key) - .build(); + .addPathSegment(key); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -145,7 +153,7 @@ public CompletableFuture> delete(String key) { * Delete a rules config variable identified by its key. */ public CompletableFuture> delete(String key, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules-configs") - .addPathSegment(key) - .build(); + .addPathSegment(key); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java index 5dc12e7a7..d6431aac2 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawSelfServiceProfilesClient.java @@ -58,6 +58,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListSelfServiceProfilesRequestParameters.builder().build(), requestOptions); + } + /** * Retrieves self-service profiles. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -179,10 +192,14 @@ public CompletableFuture> create( CreateSelfServiceProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("self-service-profiles") - .build(); + .addPathSegments("self-service-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -191,7 +208,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -373,13 +394,17 @@ public CompletableFuture> delete(String id) { * Deletes a self-service profile by Id. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -453,6 +478,14 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateSelfServiceProfileRequestContent.builder().build(), requestOptions); + } + /** * Updates a self-service profile. */ @@ -466,11 +499,15 @@ public CompletableFuture> update( String id, UpdateSelfServiceProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -479,7 +516,7 @@ public CompletableFuture> g */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -133,13 +137,17 @@ public CompletableFuture> delete(String id) { * Delete a session by ID. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -208,6 +216,14 @@ public CompletableFuture return update(id, UpdateSessionRequestContent.builder().build()); } + /** + * Update session information. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateSessionRequestContent.builder().build(), requestOptions); + } + /** * Update session information. */ @@ -221,11 +237,15 @@ public CompletableFuture */ public CompletableFuture> update( String id, UpdateSessionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -234,7 +254,7 @@ public CompletableFuture throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -316,14 +336,18 @@ public CompletableFuture> revoke(String id) { * Revokes a session by ID and all associated refresh tokens. */ public CompletableFuture> revoke(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") .addPathSegment(id) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java index 77b5c4689..c1781c4a1 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawStatsClient.java @@ -49,12 +49,16 @@ public CompletableFuture> getActiveUsersCount( * Retrieve the number of active users that logged in during the last 30 days. */ public CompletableFuture> getActiveUsersCount(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("stats/active-users") - .build(); + .addPathSegments("stats/active-users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -119,6 +123,13 @@ public CompletableFuture>> getDaily() return getDaily(GetDailyStatsRequestParameters.builder().build()); } + /** + * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. + */ + public CompletableFuture>> getDaily(RequestOptions requestOptions) { + return getDaily(GetDailyStatsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. */ @@ -142,6 +153,11 @@ public CompletableFuture>> getDaily( if (!request.getTo().isAbsent()) { QueryStringMapper.addQueryParameter(httpUrl, "to", request.getTo().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java index c2336bc33..53dbc7414 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawSupplementalSignalsClient.java @@ -50,12 +50,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("supplemental-signals") - .build(); + .addPathSegments("supplemental-signals"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -134,10 +138,14 @@ public CompletableFuture> patch( UpdateSupplementalSignalsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("supplemental-signals") - .build(); + .addPathSegments("supplemental-signals"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -146,7 +154,7 @@ public CompletableFuture> verifyEmail( VerifyEmailTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tickets/email-verification") - .build(); + .addPathSegments("tickets/email-verification"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -65,7 +69,7 @@ public CompletableFutureNote: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

      + */ + public CompletableFuture> changePassword( + RequestOptions requestOptions) { + return changePassword(ChangePasswordTicketRequestContent.builder().build(), requestOptions); + } + /** * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. *

      Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

      @@ -160,10 +173,14 @@ public CompletableFuture> changePassword( ChangePasswordTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tickets/password-change") - .build(); + .addPathSegments("tickets/password-change"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -172,7 +189,7 @@ public CompletableFutureBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list() { @@ -67,13 +67,28 @@ public AsyncRawTokenExchangeProfilesClient(ClientOptions clientOptions) { /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(TokenExchangeProfilesListRequest.builder().build(), requestOptions); + } + + /** + * Retrieve a list of all Token Exchange Profiles available in your tenant. + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      + *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list( TokenExchangeProfilesListRequest request) { @@ -82,13 +97,13 @@ public CompletableFutureBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public CompletableFuture>> list( TokenExchangeProfilesListRequest request, RequestOptions requestOptions) { @@ -100,6 +115,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -186,7 +206,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Create a new Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public CompletableFuture> create( CreateTokenExchangeProfileRequestContent request) { @@ -195,14 +215,18 @@ public CompletableFutureBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public CompletableFuture> create( CreateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("token-exchange-profiles") - .build(); + .addPathSegments("token-exchange-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -211,7 +235,7 @@ public CompletableFutureBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public CompletableFuture> get(String id) { return get(id, null); @@ -293,17 +317,21 @@ public CompletableFutureBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -376,7 +404,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Delete a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public CompletableFuture> delete(String id) { return delete(id, null); @@ -384,16 +412,20 @@ public CompletableFuture> delete(String id) { /** * Delete a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -452,7 +484,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public CompletableFuture> update(String id) { return update(id, UpdateTokenExchangeProfileRequestContent.builder().build()); @@ -460,7 +492,15 @@ public CompletableFuture> update(String id) { /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      + */ + public CompletableFuture> update(String id, RequestOptions requestOptions) { + return update(id, UpdateTokenExchangeProfileRequestContent.builder().build(), requestOptions); + } + + /** + * Update a Token Exchange Profile within your tenant. + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public CompletableFuture> update( String id, UpdateTokenExchangeProfileRequestContent request) { @@ -469,15 +509,19 @@ public CompletableFuture> update( /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public CompletableFuture> update( String id, UpdateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -486,7 +530,7 @@ public CompletableFuture> update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java index f4124c5fd..07135b478 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUserAttributeProfilesClient.java @@ -60,6 +60,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListUserAttributeProfileRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. */ @@ -81,6 +89,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -180,10 +193,14 @@ public CompletableFuture> create( CreateUserAttributeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("user-attribute-profiles") - .build(); + .addPathSegments("user-attribute-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -192,7 +209,7 @@ public CompletableFuture> listTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("user-attribute-profiles/templates") - .build(); + .addPathSegments("user-attribute-profiles/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -356,13 +377,17 @@ public CompletableFuture> getTemplate( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -440,13 +465,17 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -523,13 +552,17 @@ public CompletableFuture> delete(String id) { * Delete a single User Attribute Profile specified by ID. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -593,6 +626,14 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateUserAttributeProfileRequestContent.builder().build(), requestOptions); + } + /** * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. */ @@ -606,11 +647,15 @@ public CompletableFuture> update( String id, UpdateUserAttributeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -619,7 +664,7 @@ public CompletableFutureBrute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public CompletableFuture> listByIdentifier( ListUserBlocksByIdentifierRequestParameters request) { @@ -49,7 +49,7 @@ public CompletableFutureBrute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public CompletableFuture> listByIdentifier( ListUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -64,6 +64,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -132,8 +137,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public CompletableFuture> deleteByIdentifier( DeleteUserBlocksByIdentifierRequestParameters request) { @@ -141,8 +146,8 @@ public CompletableFuture> deleteByIdentifier( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public CompletableFuture> deleteByIdentifier( DeleteUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -150,6 +155,11 @@ public CompletableFuture> deleteByIdentifier( .newBuilder() .addPathSegments("user-blocks"); QueryStringMapper.addQueryParameter(httpUrl, "identifier", request.getIdentifier(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -214,14 +224,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public CompletableFuture> list(String id) { return list(id, ListUserBlocksRequestParameters.builder().build()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserBlocksRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public CompletableFuture> list( String id, ListUserBlocksRequestParameters request) { @@ -229,7 +247,7 @@ public CompletableFutureBrute-force Protection blocks for the user with the given ID. */ public CompletableFuture> list( String id, ListUserBlocksRequestParameters request, RequestOptions requestOptions) { @@ -244,6 +262,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -316,25 +339,29 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given ID. + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given ID. + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-blocks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java index 851e9ebc2..0b1584e3f 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUserGrantsClient.java @@ -42,14 +42,22 @@ public AsyncRawUserGrantsClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public CompletableFuture>> list() { return list(ListUserGrantsRequestParameters.builder().build()); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListUserGrantsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve the grants associated with your account. */ public CompletableFuture>> list( ListUserGrantsRequestParameters request) { @@ -57,7 +65,7 @@ public CompletableFuture } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public CompletableFuture>> list( ListUserGrantsRequestParameters request, RequestOptions requestOptions) { @@ -81,6 +89,11 @@ public CompletableFuture QueryStringMapper.addQueryParameter( httpUrl, "audience", request.getAudience().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -177,6 +190,11 @@ public CompletableFuture> deleteByUserId( .newBuilder() .addPathSegments("grants"); QueryStringMapper.addQueryParameter(httpUrl, "user_id", request.getUserId(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -246,13 +264,17 @@ public CompletableFuture> delete(String id) { * Delete a grant associated with your account. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java index 6f69d800f..5eabcf36b 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRawUsersClient.java @@ -65,10 +65,10 @@ public AsyncRawUsersClient(ClientOptions clientOptions) { *
    • Specify the number of users to retrieve per page and the page index
    • *
    *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture>> list() { return list(ListUsersRequestParameters.builder().build()); @@ -83,10 +83,29 @@ public CompletableFutureSpecify the number of users to retrieve per page and the page index * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListUsersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of users. It is possible to: + *
      + *
    • Specify a search criteria for users
    • + *
    • Sort the users to be returned
    • + *
    • Select the fields to be returned
    • + *
    • Specify the number of users to retrieve per page and the page index
    • + *
    + *

    <!-- only v3 is available -->

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture>> list( ListUsersRequestParameters request) { @@ -102,10 +121,10 @@ public CompletableFutureSpecify the number of users to retrieve per page and the page index * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture>> list( ListUsersRequestParameters request, RequestOptions requestOptions) { @@ -144,6 +163,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -235,8 +259,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CompletableFuture> create( CreateUserRequestContent request) { @@ -244,15 +268,19 @@ public CompletableFuture> c } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CompletableFuture> create( CreateUserRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("users") - .build(); + .addPathSegments("users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -261,7 +289,7 @@ public CompletableFuture> c throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -361,6 +389,11 @@ public CompletableFuture>> li httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "email", request.getEmail(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -428,14 +461,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture> get(String id) { return get(id, GetUserRequestParameters.builder().build()); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return get(id, GetUserRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture> get( String id, GetUserRequestParameters request) { @@ -443,7 +484,7 @@ public CompletableFuture> get( } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture> get( String id, GetUserRequestParameters request, RequestOptions requestOptions) { @@ -459,6 +500,11 @@ public CompletableFuture> get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -530,23 +576,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -611,57 +661,57 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -669,7 +719,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture> update(String id) { return update(id, UpdateUserRequestContent.builder().build()); @@ -678,57 +728,125 @@ public CompletableFuture> u /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    + *

    Some considerations:

    + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    + * To mark the email address of a user as verified, the body to send should be: + *
    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
    +     * "user_metadata": {
    +     * "profileCode": 1479,
    +     * "addresses": { "work_address": "100 Industrial Way" }
    +     * }
    +     * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
    +     *   "user_metadata": {
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
    +     *   "user_metadata": {
    +     *     "profileCode": 1479,
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateUserRequestContent.builder().build(), requestOptions); + } + + /** + * Update a user. + *

    These are the attributes that can be updated at the root level:

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -736,7 +854,7 @@ public CompletableFuture> u
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture> update( String id, UpdateUserRequestContent request) { @@ -746,57 +864,57 @@ public CompletableFuture> u /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -804,15 +922,19 @@ public CompletableFuture> u
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture> update( String id, UpdateUserRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -821,7 +943,7 @@ public CompletableFuture> u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -893,7 +1015,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public CompletableFuture> regenerateRecoveryCode(String id) { @@ -901,18 +1023,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public CompletableFuture> regenerateRecoveryCode(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("recovery-code-regeneration") - .build(); + .addPathSegments("recovery-code-regeneration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -985,6 +1111,13 @@ public CompletableFuture> revokeAccess(String id return revokeAccess(id, RevokeUserAccessRequestContent.builder().build()); } + /** + * Revokes selected resources related to a user (sessions, refresh tokens, ...). + */ + public CompletableFuture> revokeAccess(String id, RequestOptions requestOptions) { + return revokeAccess(id, RevokeUserAccessRequestContent.builder().build(), requestOptions); + } + /** * Revokes selected resources related to a user (sessions, refresh tokens, ...). */ @@ -998,12 +1131,16 @@ public CompletableFuture> revokeAccess( */ public CompletableFuture> revokeAccess( String id, RevokeUserAccessRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("revoke-access") - .build(); + .addPathSegments("revoke-access"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -1012,7 +1149,7 @@ public CompletableFuture> revokeAccess( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java index 2ca93bc19..499a7f20c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java @@ -62,6 +62,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update a refresh token by its ID. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update a refresh token by its ID. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncResourceServersClient.java index accaa9fc0..e8193c09d 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncResourceServersClient.java @@ -40,6 +40,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve details of all APIs associated with your tenant. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details of all APIs associated with your tenant. */ @@ -56,14 +63,14 @@ public CompletableFuture> list( } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public CompletableFuture create(CreateResourceServerRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public CompletableFuture create( CreateResourceServerRequestContent request, RequestOptions requestOptions) { @@ -71,14 +78,21 @@ public CompletableFuture create( } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve API details with the given ID. */ public CompletableFuture get( String id, GetResourceServerRequestParameters request) { @@ -86,7 +100,7 @@ public CompletableFuture get( } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public CompletableFuture get( String id, GetResourceServerRequestParameters request, RequestOptions requestOptions) { @@ -94,28 +108,35 @@ public CompletableFuture get( } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public CompletableFuture update( String id, UpdateResourceServerRequestContent request) { @@ -123,7 +144,7 @@ public CompletableFuture update( } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public CompletableFuture update( String id, UpdateResourceServerRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRolesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRolesClient.java index ee391ea85..0b9b10e2c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRolesClient.java @@ -44,7 +44,7 @@ public AsyncRawRolesClient withRawResponse() { /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); @@ -52,7 +52,15 @@ public CompletableFuture> list() { /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve detailed list of user roles created in your tenant. + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public CompletableFuture> list(ListRolesRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -60,7 +68,7 @@ public CompletableFuture> list(ListRolesRequestParamete /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public CompletableFuture> list( ListRolesRequestParameters request, RequestOptions requestOptions) { @@ -68,16 +76,16 @@ public CompletableFuture> list( } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    + * Create a user role for Role-Based Access Control. + *

    Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    */ public CompletableFuture create(CreateRoleRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    + * Create a user role for Role-Based Access Control. + *

    Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    */ public CompletableFuture create( CreateRoleRequestContent request, RequestOptions requestOptions) { @@ -85,49 +93,56 @@ public CompletableFuture create( } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Modify the details of a specific user role specified by ID. */ public CompletableFuture update(String id, UpdateRoleRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public CompletableFuture update( String id, UpdateRoleRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRulesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRulesClient.java index 1fa40c455..0c09e250c 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncRulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncRulesClient.java @@ -34,21 +34,28 @@ public AsyncRawRulesClient withRawResponse() { } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public CompletableFuture> list(ListRulesRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public CompletableFuture> list( ListRulesRequestParameters request, RequestOptions requestOptions) { @@ -56,16 +63,16 @@ public CompletableFuture> list( } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

    Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

    + * Create a new rule. + *

    Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

    */ public CompletableFuture create(CreateRuleRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

    Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

    + * Create a new rule. + *

    Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

    */ public CompletableFuture create( CreateRuleRequestContent request, RequestOptions requestOptions) { @@ -73,21 +80,28 @@ public CompletableFuture create( } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture get(String id, GetRuleRequestParameters request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public CompletableFuture get( String id, GetRuleRequestParameters request, RequestOptions requestOptions) { @@ -115,6 +129,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update an existing rule. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update an existing rule. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncSelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncSelfServiceProfilesClient.java index a90876d0d..6b5729be7 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncSelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncSelfServiceProfilesClient.java @@ -49,6 +49,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieves self-service profiles. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieves self-service profiles. */ @@ -116,6 +123,13 @@ public CompletableFuture update(String return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Updates a self-service profile. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Updates a self-service profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncSessionsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncSessionsClient.java index 1d1859b8c..7e1a77a1a 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncSessionsClient.java @@ -62,6 +62,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update session information. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update session information. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncStatsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncStatsClient.java index 2104cba7b..243f961d2 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncStatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncStatsClient.java @@ -48,6 +48,13 @@ public CompletableFuture> getDaily() { return this.rawClient.getDaily().thenApply(response -> response.body()); } + /** + * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. + */ + public CompletableFuture> getDaily(RequestOptions requestOptions) { + return this.rawClient.getDaily(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncTicketsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncTicketsClient.java index 17fd197e2..e333aa592 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncTicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncTicketsClient.java @@ -51,6 +51,14 @@ public CompletableFuture changePassword() { return this.rawClient.changePassword().thenApply(response -> response.body()); } + /** + * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. + *

    Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

    + */ + public CompletableFuture changePassword(RequestOptions requestOptions) { + return this.rawClient.changePassword(requestOptions).thenApply(response -> response.body()); + } + /** * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. *

    Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

    diff --git a/src/main/java/com/auth0/client/mgmt/AsyncTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncTokenExchangeProfilesClient.java index 2780fe869..cb559f53d 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncTokenExchangeProfilesClient.java @@ -33,13 +33,13 @@ public AsyncRawTokenExchangeProfilesClient withRawResponse() { /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); @@ -47,13 +47,28 @@ public CompletableFuture /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public CompletableFuture> list( + RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of all Token Exchange Profiles available in your tenant. + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    + *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list( TokenExchangeProfilesListRequest request) { @@ -62,13 +77,13 @@ public CompletableFuture /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list( TokenExchangeProfilesListRequest request, RequestOptions requestOptions) { @@ -77,7 +92,7 @@ public CompletableFuture /** * Create a new Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CompletableFuture create( CreateTokenExchangeProfileRequestContent request) { @@ -86,7 +101,7 @@ public CompletableFuture create( /** * Create a new Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CompletableFuture create( CreateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { @@ -95,7 +110,7 @@ public CompletableFuture create( /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); @@ -103,7 +118,7 @@ public CompletableFuture get(String id) /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -111,7 +126,7 @@ public CompletableFuture get(String id, /** * Delete a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); @@ -119,7 +134,7 @@ public CompletableFuture delete(String id) { /** * Delete a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); @@ -127,7 +142,7 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); @@ -135,7 +150,15 @@ public CompletableFuture update(String id) { /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update a Token Exchange Profile within your tenant. + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture update(String id, UpdateTokenExchangeProfileRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); @@ -143,7 +166,7 @@ public CompletableFuture update(String id, UpdateTokenExchangeProfileReque /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public CompletableFuture update( String id, UpdateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java index 2400c905a..6beec9907 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUserAttributeProfilesClient.java @@ -41,6 +41,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. */ @@ -138,6 +145,14 @@ public CompletableFuture update(Strin return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. + */ + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. */ diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUserBlocksClient.java index 1b1c7b9d3..3e4373cf8 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUserBlocksClient.java @@ -30,7 +30,7 @@ public AsyncRawUserBlocksClient withRawResponse() { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public CompletableFuture listByIdentifier( ListUserBlocksByIdentifierRequestParameters request) { @@ -38,7 +38,7 @@ public CompletableFuture listByIdenti } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public CompletableFuture listByIdentifier( ListUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -46,16 +46,16 @@ public CompletableFuture listByIdenti } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public CompletableFuture deleteByIdentifier(DeleteUserBlocksByIdentifierRequestParameters request) { return this.rawClient.deleteByIdentifier(request).thenApply(response -> response.body()); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public CompletableFuture deleteByIdentifier( DeleteUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -63,21 +63,28 @@ public CompletableFuture deleteByIdentifier( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public CompletableFuture list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. + */ + public CompletableFuture list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public CompletableFuture list(String id, ListUserBlocksRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public CompletableFuture list( String id, ListUserBlocksRequestParameters request, RequestOptions requestOptions) { @@ -85,16 +92,16 @@ public CompletableFuture list( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given ID. + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given ID. + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUserGrantsClient.java index 3a3e21bf0..a8d4dbffc 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUserGrantsClient.java @@ -29,21 +29,28 @@ public AsyncRawUserGrantsClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve the grants associated with your account. */ public CompletableFuture> list(ListUserGrantsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public CompletableFuture> list( ListUserGrantsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java index 0c30ca45f..38eb2359b 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncUsersClient.java @@ -109,10 +109,10 @@ public AsyncRawUsersClient withRawResponse() { *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); @@ -127,10 +127,28 @@ public CompletableFuture> list() { *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details of users. It is possible to: + *
      + *
    • Specify a search criteria for users
    • + *
    • Sort the users to be returned
    • + *
    • Select the fields to be returned
    • + *
    • Specify the number of users to retrieve per page and the page index
    • + *
    + *

    <!-- only v3 is available -->

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture> list(ListUsersRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -145,10 +163,10 @@ public CompletableFuture> list(ListUsersR *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public CompletableFuture> list( ListUsersRequestParameters request, RequestOptions requestOptions) { @@ -156,16 +174,16 @@ public CompletableFuture> list( } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CompletableFuture create(CreateUserRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CompletableFuture create( CreateUserRequestContent request, RequestOptions requestOptions) { @@ -192,21 +210,28 @@ public CompletableFuture> listUsersByEmail( } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. + */ + public CompletableFuture get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture get(String id, GetUserRequestParameters request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public CompletableFuture get( String id, GetUserRequestParameters request, RequestOptions requestOptions) { @@ -214,14 +239,14 @@ public CompletableFuture get( } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); @@ -230,57 +255,57 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -288,7 +313,7 @@ public CompletableFuture delete(String id, RequestOptions requestOptions)
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); @@ -297,57 +322,124 @@ public CompletableFuture update(String id) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    + *

    Some considerations:

    + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    + * To mark the email address of a user as verified, the body to send should be: + *
    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
    +     * "user_metadata": {
    +     * "profileCode": 1479,
    +     * "addresses": { "work_address": "100 Industrial Way" }
    +     * }
    +     * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
    +     *   "user_metadata": {
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
    +     *   "user_metadata": {
    +     *     "profileCode": 1479,
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update a user. + *

    These are the attributes that can be updated at the root level:

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -355,7 +447,7 @@ public CompletableFuture update(String id) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture update(String id, UpdateUserRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); @@ -364,57 +456,57 @@ public CompletableFuture update(String id, UpdateUser /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -422,7 +514,7 @@ public CompletableFuture update(String id, UpdateUser
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public CompletableFuture update( String id, UpdateUserRequestContent request, RequestOptions requestOptions) { @@ -430,14 +522,14 @@ public CompletableFuture update( } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public CompletableFuture regenerateRecoveryCode(String id) { return this.rawClient.regenerateRecoveryCode(id).thenApply(response -> response.body()); } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public CompletableFuture regenerateRecoveryCode( String id, RequestOptions requestOptions) { @@ -451,6 +543,13 @@ public CompletableFuture revokeAccess(String id) { return this.rawClient.revokeAccess(id).thenApply(response -> response.body()); } + /** + * Revokes selected resources related to a user (sessions, refresh tokens, ...). + */ + public CompletableFuture revokeAccess(String id, RequestOptions requestOptions) { + return this.rawClient.revokeAccess(id, requestOptions).thenApply(response -> response.body()); + } + /** * Revokes selected resources related to a user (sessions, refresh tokens, ...). */ diff --git a/src/main/java/com/auth0/client/mgmt/BrandingClient.java b/src/main/java/com/auth0/client/mgmt/BrandingClient.java index 90b5792f1..43c847e24 100644 --- a/src/main/java/com/auth0/client/mgmt/BrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/BrandingClient.java @@ -61,6 +61,13 @@ public UpdateBrandingResponseContent update() { return this.rawClient.update().body(); } + /** + * Update branding settings. + */ + public UpdateBrandingResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update branding settings. */ diff --git a/src/main/java/com/auth0/client/mgmt/ClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/ClientGrantsClient.java index f96e42753..093806a12 100644 --- a/src/main/java/com/auth0/client/mgmt/ClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ClientGrantsClient.java @@ -38,21 +38,28 @@ public RawClientGrantsClient withRawResponse() { } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public SyncPagingIterable list(ListClientGrantsRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public SyncPagingIterable list( ListClientGrantsRequestParameters request, RequestOptions requestOptions) { @@ -60,14 +67,14 @@ public SyncPagingIterable list( } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CreateClientGrantResponseContent create(CreateClientGrantRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public CreateClientGrantResponseContent create( CreateClientGrantRequestContent request, RequestOptions requestOptions) { @@ -75,7 +82,7 @@ public CreateClientGrantResponseContent create( } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public GetClientGrantResponseContent get(String id) { @@ -83,7 +90,7 @@ public GetClientGrantResponseContent get(String id) { } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public GetClientGrantResponseContent get(String id, RequestOptions requestOptions) { @@ -91,14 +98,14 @@ public GetClientGrantResponseContent get(String id, RequestOptions requestOption } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); @@ -111,6 +118,13 @@ public UpdateClientGrantResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update a client grant. + */ + public UpdateClientGrantResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update a client grant. */ diff --git a/src/main/java/com/auth0/client/mgmt/ClientsClient.java b/src/main/java/com/auth0/client/mgmt/ClientsClient.java index 2e8759ea3..56c76c366 100644 --- a/src/main/java/com/auth0/client/mgmt/ClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ClientsClient.java @@ -45,37 +45,37 @@ public RawClientsClient withRawResponse() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -83,37 +83,75 @@ public SyncPagingIterable list() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • + * The following can be retrieved with any scope: + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public SyncPagingIterable list(ListClientsRequestParameters request) { return this.rawClient.list(request).body(); @@ -121,77 +159,77 @@ public SyncPagingIterable list(ListClientsRequestParameters request) { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public SyncPagingIterable list(ListClientsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

    */ public CreateClientResponseContent create(CreateClientRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read
    Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

    */ public CreateClientResponseContent create(CreateClientRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); @@ -199,36 +237,36 @@ public CreateClientResponseContent create(CreateClientRequestContent request, Re /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public GetClientResponseContent get(String id) { return this.rawClient.get(id).body(); @@ -236,36 +274,73 @@ public GetClientResponseContent get(String id) { /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    + */ + public GetClientResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • + * The following properties can be retrieved with any of the scopes: + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public GetClientResponseContent get(String id, GetClientRequestParameters request) { return this.rawClient.get(id, request).body(); @@ -273,36 +348,36 @@ public GetClientResponseContent get(String id, GetClientRequestParameters reques /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

    <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

      + *
    • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

      + * client_id, app_type, name, and description. + *
    • + *
    • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
    • + *
    • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
    • + *

    */ public GetClientResponseContent get(String id, GetClientRequestParameters request, RequestOptions requestOptions) { return this.rawClient.get(id, request, requestOptions).body(); @@ -323,15 +398,15 @@ public void delete(String id, RequestOptions requestOptions) { } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

    Notes:

    *
      *
    • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
    • - *
    • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
    • - *
    • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • - *
    • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
    • - *
    • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
    • - *
    • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
    • + *
    • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
    • + *
    • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • + *
    • To configure client_authentication_methods, the update:client_credentials scope is required.
    • + *
    • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
    • + *
    • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
    • *
    */ public UpdateClientResponseContent update(String id) { @@ -339,15 +414,31 @@ public UpdateClientResponseContent update(String id) { } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. + *

    Notes:

    + *
      + *
    • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
    • + *
    • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
    • + *
    • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • + *
    • To configure client_authentication_methods, the update:client_credentials scope is required.
    • + *
    • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
    • + *
    • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
    • + *
    + */ + public UpdateClientResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

    Notes:

    *
      *
    • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
    • - *
    • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
    • - *
    • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • - *
    • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
    • - *
    • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
    • - *
    • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
    • + *
    • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
    • + *
    • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • + *
    • To configure client_authentication_methods, the update:client_credentials scope is required.
    • + *
    • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
    • + *
    • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
    • *
    */ public UpdateClientResponseContent update(String id, UpdateClientRequestContent request) { @@ -355,15 +446,15 @@ public UpdateClientResponseContent update(String id, UpdateClientRequestContent } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

    Notes:

    *
      *
    • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
    • - *
    • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
    • - *
    • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • - *
    • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
    • - *
    • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
    • - *
    • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
    • + *
    • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
    • + *
    • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
    • + *
    • To configure client_authentication_methods, the update:client_credentials scope is required.
    • + *
    • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
    • + *
    • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
    • *
    */ public UpdateClientResponseContent update( @@ -374,7 +465,7 @@ public UpdateClientResponseContent update( /** * Rotate a client secret. *

    This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

    - *

    For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

    + *

    For more information, read Rotate Client Secrets.

    */ public RotateClientSecretResponseContent rotateSecret(String id) { return this.rawClient.rotateSecret(id).body(); @@ -383,7 +474,7 @@ public RotateClientSecretResponseContent rotateSecret(String id) { /** * Rotate a client secret. *

    This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

    - *

    For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

    + *

    For more information, read Rotate Client Secrets.

    */ public RotateClientSecretResponseContent rotateSecret(String id, RequestOptions requestOptions) { return this.rawClient.rotateSecret(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/ConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/ConnectionProfilesClient.java index 54e4be959..76826490a 100644 --- a/src/main/java/com/auth0/client/mgmt/ConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/ConnectionProfilesClient.java @@ -40,6 +40,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. */ @@ -133,6 +140,13 @@ public UpdateConnectionProfileResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update the details of a specific Connection Profile. + */ + public UpdateConnectionProfileResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update the details of a specific Connection Profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java index 999adfd88..c2c3897b0 100644 --- a/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/ConnectionsClient.java @@ -55,60 +55,80 @@ public RawConnectionsClient withRawResponse() { } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list(ListConnectionsQueryParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list( ListConnectionsQueryParameters request, RequestOptions requestOptions) { @@ -116,16 +136,16 @@ public SyncPagingIterable list( } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

    <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

    + * Creates a new connection according to the JSON object received in body. + *

    Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

    */ public CreateConnectionResponseContent create(CreateConnectionRequestContent request) { return this.rawClient.create(request).body(); } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

    <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

    + * Creates a new connection according to the JSON object received in body. + *

    Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

    */ public CreateConnectionResponseContent create( CreateConnectionRequestContent request, RequestOptions requestOptions) { @@ -133,21 +153,28 @@ public CreateConnectionResponseContent create( } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public GetConnectionResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. + */ + public GetConnectionResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public GetConnectionResponseContent get(String id, GetConnectionRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public GetConnectionResponseContent get( String id, GetConnectionRequestParameters request, RequestOptions requestOptions) { @@ -155,40 +182,48 @@ public GetConnectionResponseContent get( } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

    <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

    + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

    Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

    */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

    <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

    + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

    Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

    */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

    <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    + * Update details for a specific connection, including option properties for identity provider configuration. + *

    Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    */ public UpdateConnectionResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

    <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    + * Update details for a specific connection, including option properties for identity provider configuration. + *

    Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    + */ + public UpdateConnectionResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update details for a specific connection, including option properties for identity provider configuration. + *

    Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    */ public UpdateConnectionResponseContent update(String id, UpdateConnectionRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

    <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    + * Update details for a specific connection, including option properties for identity provider configuration. + *

    Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

    */ public UpdateConnectionResponseContent update( String id, UpdateConnectionRequestContent request, RequestOptions requestOptions) { @@ -196,14 +231,14 @@ public UpdateConnectionResponseContent update( } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public void checkStatus(String id) { this.rawClient.checkStatus(id).body(); } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public void checkStatus(String id, RequestOptions requestOptions) { this.rawClient.checkStatus(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java index c91dcdba1..304cb7223 100644 --- a/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/CustomDomainsClient.java @@ -34,21 +34,28 @@ public RawCustomDomainsClient withRawResponse() { } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public List list() { return this.rawClient.list().body(); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. + */ + public List list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve details on custom domains. */ public List list(ListCustomDomainsRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public List list(ListCustomDomainsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); @@ -126,11 +133,11 @@ public void delete(String id, RequestOptions requestOptions) { *
  • custom_client_ip_header
  • *
  • tls_policy
  • * - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -138,7 +145,7 @@ public void delete(String id, RequestOptions requestOptions) { *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public UpdateCustomDomainResponseContent update(String id) { @@ -152,11 +159,37 @@ public UpdateCustomDomainResponseContent update(String id) { *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to + * send should be: + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    + *

    TLS Policies:

    + *
      + *
    • recommended - for modern usage this includes TLS 1.2 only
    • + *
    + *

    Some considerations:

    + *
      + *
    • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
    • + *
    • The compatible TLS policy is no longer supported.
    • + *
    + */ + public UpdateCustomDomainResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a custom domain. + *

    These are the attributes that can be updated:

    + *
      + *
    • custom_client_ip_header
    • + *
    • tls_policy
    • + *
    + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -164,7 +197,7 @@ public UpdateCustomDomainResponseContent update(String id) { *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public UpdateCustomDomainResponseContent update(String id, UpdateCustomDomainRequestContent request) { @@ -178,11 +211,11 @@ public UpdateCustomDomainResponseContent update(String id, UpdateCustomDomainReq *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -190,7 +223,7 @@ public UpdateCustomDomainResponseContent update(String id, UpdateCustomDomainReq *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public UpdateCustomDomainResponseContent update( @@ -214,10 +247,10 @@ public TestCustomDomainResponseContent test(String id, RequestOptions requestOpt /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public VerifyCustomDomainResponseContent verify(String id) { return this.rawClient.verify(id).body(); @@ -225,10 +258,10 @@ public VerifyCustomDomainResponseContent verify(String id) { /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public VerifyCustomDomainResponseContent verify(String id, RequestOptions requestOptions) { return this.rawClient.verify(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/DeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/DeviceCredentialsClient.java index 7bca7c738..d98987a2e 100644 --- a/src/main/java/com/auth0/client/mgmt/DeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/DeviceCredentialsClient.java @@ -29,21 +29,28 @@ public RawDeviceCredentialsClient withRawResponse() { } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public SyncPagingIterable list(ListDeviceCredentialsRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public SyncPagingIterable list( ListDeviceCredentialsRequestParameters request, RequestOptions requestOptions) { @@ -51,8 +58,8 @@ public SyncPagingIterable list( } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public CreatePublicKeyDeviceCredentialResponseContent createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request) { @@ -60,8 +67,8 @@ public CreatePublicKeyDeviceCredentialResponseContent createPublicKey( } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public CreatePublicKeyDeviceCredentialResponseContent createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/EmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/EmailTemplatesClient.java index cda139182..0bf8b5773 100644 --- a/src/main/java/com/auth0/client/mgmt/EmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/EmailTemplatesClient.java @@ -83,6 +83,14 @@ public UpdateEmailTemplateResponseContent update(EmailTemplateNameEnum templateN return this.rawClient.update(templateName).body(); } + /** + * Modify an email template. + */ + public UpdateEmailTemplateResponseContent update( + EmailTemplateNameEnum templateName, RequestOptions requestOptions) { + return this.rawClient.update(templateName, requestOptions).body(); + } + /** * Modify an email template. */ diff --git a/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java index a74aa944e..f830c7e5b 100644 --- a/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/EventStreamsClient.java @@ -47,6 +47,10 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + public SyncPagingIterable list(ListEventStreamsRequestParameters request) { return this.rawClient.list(request).body(); } @@ -84,6 +88,10 @@ public UpdateEventStreamResponseContent update(String id) { return this.rawClient.update(id).body(); } + public UpdateEventStreamResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + public UpdateEventStreamResponseContent update(String id, UpdateEventStreamRequestContent request) { return this.rawClient.update(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/FlowsClient.java b/src/main/java/com/auth0/client/mgmt/FlowsClient.java index 63b8fc6b2..38c4550e8 100644 --- a/src/main/java/com/auth0/client/mgmt/FlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/FlowsClient.java @@ -46,6 +46,10 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + public SyncPagingIterable list(ListFlowsRequestParameters request) { return this.rawClient.list(request).body(); } @@ -66,6 +70,10 @@ public GetFlowResponseContent get(String id) { return this.rawClient.get(id).body(); } + public GetFlowResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + public GetFlowResponseContent get(String id, GetFlowRequestParameters request) { return this.rawClient.get(id, request).body(); } @@ -86,6 +94,10 @@ public UpdateFlowResponseContent update(String id) { return this.rawClient.update(id).body(); } + public UpdateFlowResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + public UpdateFlowResponseContent update(String id, UpdateFlowRequestContent request) { return this.rawClient.update(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/FormsClient.java b/src/main/java/com/auth0/client/mgmt/FormsClient.java index de9e6b84f..a52bc86c4 100644 --- a/src/main/java/com/auth0/client/mgmt/FormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/FormsClient.java @@ -36,6 +36,10 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + public SyncPagingIterable list(ListFormsRequestParameters request) { return this.rawClient.list(request).body(); } @@ -56,6 +60,10 @@ public GetFormResponseContent get(String id) { return this.rawClient.get(id).body(); } + public GetFormResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + public GetFormResponseContent get(String id, GetFormRequestParameters request) { return this.rawClient.get(id, request).body(); } @@ -76,6 +84,10 @@ public UpdateFormResponseContent update(String id) { return this.rawClient.update(id).body(); } + public UpdateFormResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + public UpdateFormResponseContent update(String id, UpdateFormRequestContent request) { return this.rawClient.update(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/GroupsClient.java b/src/main/java/com/auth0/client/mgmt/GroupsClient.java index b01f8ba90..1f0ced1c2 100644 --- a/src/main/java/com/auth0/client/mgmt/GroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/GroupsClient.java @@ -40,6 +40,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * List all groups in your tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * List all groups in your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/HooksClient.java b/src/main/java/com/auth0/client/mgmt/HooksClient.java index 523dee184..519fad435 100644 --- a/src/main/java/com/auth0/client/mgmt/HooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/HooksClient.java @@ -39,21 +39,28 @@ public RawHooksClient withRawResponse() { } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public SyncPagingIterable list(ListHooksRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public SyncPagingIterable list(ListHooksRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); @@ -74,21 +81,28 @@ public CreateHookResponseContent create(CreateHookRequestContent request, Reques } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public GetHookResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. + */ + public GetHookResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public GetHookResponseContent get(String id, GetHookRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public GetHookResponseContent get(String id, GetHookRequestParameters request, RequestOptions requestOptions) { return this.rawClient.get(id, request, requestOptions).body(); @@ -115,6 +129,13 @@ public UpdateHookResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update an existing hook. + */ + public UpdateHookResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update an existing hook. */ diff --git a/src/main/java/com/auth0/client/mgmt/LogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/LogStreamsClient.java index 45907a75f..bd64d8e6b 100644 --- a/src/main/java/com/auth0/client/mgmt/LogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/LogStreamsClient.java @@ -31,8 +31,8 @@ public RawLogStreamsClient withRawResponse() { } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -96,15 +96,15 @@ public RawLogStreamsClient withRawResponse() {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public List list() { return this.rawClient.list().body(); } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -168,7 +168,7 @@ public List list() {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public List list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).body(); @@ -176,9 +176,9 @@ public List list(RequestOptions requestOptions) { /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -187,8 +187,8 @@ public List list(RequestOptions requestOptions) {
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -199,17 +199,17 @@ public List list(RequestOptions requestOptions) {
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -219,9 +219,9 @@ public List list(RequestOptions requestOptions) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -229,8 +229,8 @@ public List list(RequestOptions requestOptions) {
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -241,17 +241,17 @@ public List list(RequestOptions requestOptions) {
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -260,9 +260,9 @@ public List list(RequestOptions requestOptions) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -271,8 +271,8 @@ public List list(RequestOptions requestOptions) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -283,16 +283,16 @@ public List list(RequestOptions requestOptions) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -300,7 +300,7 @@ public List list(RequestOptions requestOptions) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent request) { return this.rawClient.create(request).body(); @@ -308,9 +308,9 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -319,8 +319,8 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -331,17 +331,17 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -351,9 +351,9 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -361,8 +361,8 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -373,17 +373,17 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -392,9 +392,9 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -403,8 +403,8 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -415,16 +415,16 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -432,7 +432,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); @@ -440,7 +440,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -450,7 +450,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -461,7 +461,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -470,8 +470,8 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -480,10 +480,10 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -494,19 +494,19 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -514,9 +514,9 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -527,7 +527,7 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -535,10 +535,10 @@ public CreateLogStreamResponseContent create(CreateLogStreamRequestContent reque
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public GetLogStreamResponseContent get(String id) { return this.rawClient.get(id).body(); @@ -546,7 +546,7 @@ public GetLogStreamResponseContent get(String id) { /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -556,7 +556,7 @@ public GetLogStreamResponseContent get(String id) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -567,7 +567,7 @@ public GetLogStreamResponseContent get(String id) {
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -576,8 +576,8 @@ public GetLogStreamResponseContent get(String id) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -586,10 +586,10 @@ public GetLogStreamResponseContent get(String id) {
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -600,19 +600,19 @@ public GetLogStreamResponseContent get(String id) {
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -620,9 +620,9 @@ public GetLogStreamResponseContent get(String id) {
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -633,7 +633,7 @@ public GetLogStreamResponseContent get(String id) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -641,10 +641,10 @@ public GetLogStreamResponseContent get(String id) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public GetLogStreamResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -666,40 +666,40 @@ public void delete(String id, RequestOptions requestOptions) { /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public UpdateLogStreamResponseContent update(String id) { return this.rawClient.update(id).body(); @@ -707,40 +707,81 @@ public UpdateLogStreamResponseContent update(String id) { /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      + */ + public UpdateLogStreamResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a log stream. + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
      +     * 	"status": "active|paused"
      +     * }
      + *
      Update the name of a log stream
      {
      +     * 	"name": "string"
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
      +     *   "sink": {
      +     *     "httpEndpoint": "string",
      +     *     "httpContentType": "string",
      +     *     "httpContentFormat": "JSONARRAY|JSONLINES",
      +     *     "httpAuthorization": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
      +     *   "sink": {
      +     * 		"datadogRegion": "string",
      +     * 		"datadogApiKey": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
      +     *   "sink": {
      +     *     "splunkDomain": "string",
      +     *     "splunkToken": "string",
      +     *     "splunkPort": "string",
      +     *     "splunkSecure": "boolean"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
      +     *   "sink": {
      +     *     "sumoSourceAddress": "string"
      +     *   }
      +     * }

      */ public UpdateLogStreamResponseContent update(String id, UpdateLogStreamRequestContent request) { return this.rawClient.update(id, request).body(); @@ -748,40 +789,40 @@ public UpdateLogStreamResponseContent update(String id, UpdateLogStreamRequestCo /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public UpdateLogStreamResponseContent update( String id, UpdateLogStreamRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/LogsClient.java b/src/main/java/com/auth0/client/mgmt/LogsClient.java index 4111ffced..e268fda5e 100644 --- a/src/main/java/com/auth0/client/mgmt/LogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/LogsClient.java @@ -29,26 +29,26 @@ public RawLogsClient withRawResponse() { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -56,26 +56,53 @@ public SyncPagingIterable list() { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public SyncPagingIterable list(ListLogsRequestParameters request) { return this.rawClient.list(request).body(); @@ -83,26 +110,26 @@ public SyncPagingIterable list(ListLogsRequestParameters request) { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public SyncPagingIterable list(ListLogsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/NetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/NetworkAclsClient.java index c812f3c33..fe6ce32e6 100644 --- a/src/main/java/com/auth0/client/mgmt/NetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/NetworkAclsClient.java @@ -39,6 +39,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Get all access control list entries for your client. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Get all access control list entries for your client. */ @@ -118,6 +125,13 @@ public UpdateNetworkAclResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update existing access control list for your client. + */ + public UpdateNetworkAclResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update existing access control list for your client. */ diff --git a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java index f03292852..5a1782ab5 100644 --- a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java @@ -57,18 +57,18 @@ public RawOrganizationsClient withRawResponse() { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -77,18 +77,38 @@ public SyncPagingIterable list() { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public SyncPagingIterable list(ListOrganizationsRequestParameters request) { return this.rawClient.list(request).body(); @@ -97,18 +117,18 @@ public SyncPagingIterable list(ListOrganizationsRequestParameters /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public SyncPagingIterable list( ListOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -116,14 +136,14 @@ public SyncPagingIterable list( } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public CreateOrganizationResponseContent create(CreateOrganizationRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public CreateOrganizationResponseContent create( CreateOrganizationRequestContent request, RequestOptions requestOptions) { @@ -160,7 +180,7 @@ public GetOrganizationResponseContent get(String id, RequestOptions requestOptio /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public void delete(String id) { this.rawClient.delete(id).body(); @@ -168,28 +188,35 @@ public void delete(String id) { /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public UpdateOrganizationResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. + */ + public UpdateOrganizationResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public UpdateOrganizationResponseContent update(String id, UpdateOrganizationRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public UpdateOrganizationResponseContent update( String id, UpdateOrganizationRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/PromptsClient.java b/src/main/java/com/auth0/client/mgmt/PromptsClient.java index 2b0f9ae14..8f867ce85 100644 --- a/src/main/java/com/auth0/client/mgmt/PromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/PromptsClient.java @@ -41,35 +41,42 @@ public RawPromptsClient withRawResponse() { } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public GetSettingsResponseContent getSettings() { return this.rawClient.getSettings().body(); } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public GetSettingsResponseContent getSettings(RequestOptions requestOptions) { return this.rawClient.getSettings(requestOptions).body(); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public UpdateSettingsResponseContent updateSettings() { return this.rawClient.updateSettings().body(); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. + */ + public UpdateSettingsResponseContent updateSettings(RequestOptions requestOptions) { + return this.rawClient.updateSettings(requestOptions).body(); + } + + /** + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public UpdateSettingsResponseContent updateSettings(UpdateSettingsRequestContent request) { return this.rawClient.updateSettings(request).body(); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public UpdateSettingsResponseContent updateSettings( UpdateSettingsRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RawActionsClient.java b/src/main/java/com/auth0/client/mgmt/RawActionsClient.java index 98e3a8f4b..129ef1186 100644 --- a/src/main/java/com/auth0/client/mgmt/RawActionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawActionsClient.java @@ -55,6 +55,13 @@ public ManagementApiHttpResponse> list() { return list(ListActionsRequestParameters.builder().build()); } + /** + * Retrieve all actions. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListActionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all actions. */ @@ -89,6 +96,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "installed", request.getInstalled().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -156,10 +168,14 @@ public ManagementApiHttpResponse create(CreateActio */ public ManagementApiHttpResponse create( CreateActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/actions") - .build(); + .addPathSegments("actions/actions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -168,7 +184,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -223,13 +239,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieve an action by its ID. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -282,6 +302,13 @@ public ManagementApiHttpResponse delete(String id) { return delete(id, DeleteActionRequestParameters.builder().build()); } + /** + * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. + */ + public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { + return delete(id, DeleteActionRequestParameters.builder().build(), requestOptions); + } + /** * Deletes an action and all of its associated versions. An action must be unbound from all triggers before it can be deleted. */ @@ -302,6 +329,11 @@ public ManagementApiHttpResponse delete( QueryStringMapper.addQueryParameter( httpUrl, "force", request.getForce().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -348,14 +380,21 @@ public ManagementApiHttpResponse delete( } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateActionRequestContent.builder().build()); } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateActionRequestContent.builder().build(), requestOptions); + } + + /** + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public ManagementApiHttpResponse update( String id, UpdateActionRequestContent request) { @@ -363,15 +402,19 @@ public ManagementApiHttpResponse update( } /** - * Update an existing action. If this action is currently bound to a trigger, updating it will <strong>not</strong> affect any user flows until the action is deployed. + * Update an existing action. If this action is currently bound to a trigger, updating it will not affect any user flows until the action is deployed. */ public ManagementApiHttpResponse update( String id, UpdateActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -380,7 +423,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -438,14 +481,18 @@ public ManagementApiHttpResponse deploy(String id) * Deploy an action. Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately. Otherwise, the action will only be executed as a part of a flow once it is bound to that flow. */ public ManagementApiHttpResponse deploy(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(id) - .addPathSegments("deploy") - .build(); + .addPathSegments("deploy"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -500,12 +547,16 @@ public ManagementApiHttpResponse test(String id, Test */ public ManagementApiHttpResponse test( String id, TestActionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -514,7 +565,7 @@ public ManagementApiHttpResponse test( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java b/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java index 443ce6889..ecba10b1c 100644 --- a/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawBrandingClient.java @@ -45,12 +45,16 @@ public ManagementApiHttpResponse get() { * Retrieve branding settings. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding") - .build(); + .addPathSegments("branding"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -97,6 +101,13 @@ public ManagementApiHttpResponse update() { return update(UpdateBrandingRequestContent.builder().build()); } + /** + * Update branding settings. + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateBrandingRequestContent.builder().build(), requestOptions); + } + /** * Update branding settings. */ @@ -109,10 +120,14 @@ public ManagementApiHttpResponse update(UpdateBra */ public ManagementApiHttpResponse update( UpdateBrandingRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding") - .build(); + .addPathSegments("branding"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -121,7 +136,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java index b288b691b..18702fe9f 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientGrantsClient.java @@ -47,14 +47,22 @@ public RawClientGrantsClient(ClientOptions clientOptions) { } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public ManagementApiHttpResponse> list() { return list(ListClientGrantsRequestParameters.builder().build()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. + */ + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListClientGrantsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public ManagementApiHttpResponse> list( ListClientGrantsRequestParameters request) { @@ -62,7 +70,7 @@ public ManagementApiHttpResponse> } /** - * Retrieve a list of <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grants</a>, including the scopes associated with the application/API pair. + * Retrieve a list of client grants, including the scopes associated with the application/API pair. */ public ManagementApiHttpResponse> list( ListClientGrantsRequestParameters request, RequestOptions requestOptions) { @@ -93,6 +101,11 @@ public ManagementApiHttpResponse> QueryStringMapper.addQueryParameter( httpUrl, "subject_type", request.getSubjectType().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -147,21 +160,25 @@ public ManagementApiHttpResponse> } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public ManagementApiHttpResponse create(CreateClientGrantRequestContent request) { return create(request, null); } /** - * Create a client grant for a machine-to-machine login flow. To learn more, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Create a client grant for a machine-to-machine login flow. To learn more, read Client Credential Flow. */ public ManagementApiHttpResponse create( CreateClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("client-grants") - .build(); + .addPathSegments("client-grants"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -170,7 +187,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -221,7 +238,7 @@ public ManagementApiHttpResponse create( } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public ManagementApiHttpResponse get(String id) { @@ -229,17 +246,21 @@ public ManagementApiHttpResponse get(String id) { } /** - * Retrieve a single <a href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants">client grant</a>, including the + * Retrieve a single client grant, including the * scopes associated with the application/API pair. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -283,23 +304,27 @@ public ManagementApiHttpResponse get(String id, R } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Delete the <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a> from your machine-to-machine application. + * Delete the Client Credential Flow from your machine-to-machine application. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -347,6 +372,14 @@ public ManagementApiHttpResponse update(String return update(id, UpdateClientGrantRequestContent.builder().build()); } + /** + * Update a client grant. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateClientGrantRequestContent.builder().build(), requestOptions); + } + /** * Update a client grant. */ @@ -360,11 +393,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("client-grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -373,7 +410,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java index 1e6536e43..08099a14d 100644 --- a/src/main/java/com/auth0/client/mgmt/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawClientsClient.java @@ -49,37 +49,37 @@ public RawClientsClient(ClientOptions clientOptions) { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse> list() { return list(ListClientsRequestParameters.builder().build()); @@ -87,37 +87,75 @@ public ManagementApiHttpResponse> list() { /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListClientsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • + * The following can be retrieved with any scope: + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse> list(ListClientsRequestParameters request) { return list(request, null); @@ -125,37 +163,37 @@ public ManagementApiHttpResponse> list(ListClientsReq /** * Retrieve clients (applications and SSO integrations) matching provided filters. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following can be retrieved with any scope: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scope: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scope: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • * The following properties can only be retrieved with the - * <code>read:client_keys</code> or <code>read:client_credentials</code> scope: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * read:client_keys or read:client_credentials scope: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse> list( ListClientsRequestParameters request, RequestOptions requestOptions) { @@ -190,6 +228,11 @@ public ManagementApiHttpResponse> list( if (!request.getQ().isAbsent()) { QueryStringMapper.addQueryParameter(httpUrl, "q", request.getQ().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -246,47 +289,51 @@ public ManagementApiHttpResponse> list( } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

      */ public ManagementApiHttpResponse create(CreateClientRequestContent request) { return create(request, null); } /** - * Create a new client (application or SSO integration). For more information, read <a href="https://www.auth0.com/docs/get-started/auth0-overview/create-applications">Create Applications</a> - * <a href="https://www.auth0.com/docs/authenticate/single-sign-on/api-endpoints-for-single-sign-on>">API Endpoints for Single Sign-On</a>. + * Create a new client (application or SSO integration). For more information, read
      Create Applications + * SSO Integrations created via this endpoint will accept login requests and share user profile information.

      */ public ManagementApiHttpResponse create( CreateClientRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("clients") - .build(); + .addPathSegments("clients"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -295,7 +342,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -344,36 +391,36 @@ public ManagementApiHttpResponse create( /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse get(String id) { return get(id, GetClientRequestParameters.builder().build()); @@ -381,36 +428,73 @@ public ManagementApiHttpResponse get(String id) { /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetClientRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • + * The following properties can be retrieved with any of the scopes: + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse get(String id, GetClientRequestParameters request) { return get(id, request, null); @@ -418,36 +502,36 @@ public ManagementApiHttpResponse get(String id, GetCli /** * Retrieve client details by ID. Clients are SSO connections or Applications linked with your Auth0 tenant. A list of fields to include or exclude may also be specified. - * For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. - *

      <ul> - * <li> + * For more information, read Applications in Auth0 and Single Sign-On. + *

        + *
      • * The following properties can be retrieved with any of the scopes: - * <code>client_id</code>, <code>app_type</code>, <code>name</code>, and <code>description</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:clients</code> or - * <code>read:client_keys</code> scopes: - * <code>callbacks</code>, <code>oidc_logout</code>, <code>allowed_origins</code>, - * <code>web_origins</code>, <code>tenant</code>, <code>global</code>, <code>config_route</code>, - * <code>callback_url_template</code>, <code>jwt_configuration</code>, - * <code>jwt_configuration.lifetime_in_seconds</code>, <code>jwt_configuration.secret_encoded</code>, - * <code>jwt_configuration.scopes</code>, <code>jwt_configuration.alg</code>, <code>api_type</code>, - * <code>logo_uri</code>, <code>allowed_clients</code>, <code>owners</code>, <code>custom_login_page</code>, - * <code>custom_login_page_off</code>, <code>sso</code>, <code>addons</code>, <code>form_template</code>, - * <code>custom_login_page_codeview</code>, <code>resource_servers</code>, <code>client_metadata</code>, - * <code>mobile</code>, <code>mobile.android</code>, <code>mobile.ios</code>, <code>allowed_logout_urls</code>, - * <code>token_endpoint_auth_method</code>, <code>is_first_party</code>, <code>oidc_conformant</code>, - * <code>is_token_endpoint_ip_header_trusted</code>, <code>initiate_login_uri</code>, <code>grant_types</code>, - * <code>refresh_token</code>, <code>refresh_token.rotation_type</code>, <code>refresh_token.expiration_type</code>, - * <code>refresh_token.leeway</code>, <code>refresh_token.token_lifetime</code>, <code>refresh_token.policies</code>, <code>organization_usage</code>, - * <code>organization_require_behavior</code>. - * </li> - * <li> - * The following properties can only be retrieved with the <code>read:client_keys</code> or <code>read:client_credentials</code> scopes: - * <code>encryption_key</code>, <code>encryption_key.pub</code>, <code>encryption_key.cert</code>, - * <code>client_secret</code>, <code>client_authentication_methods</code> and <code>signing_key</code>. - * </li> - * </ul>

        + * client_id, app_type, name, and description. + *
      • + *
      • + * The following properties can only be retrieved with the read:clients or + * read:client_keys scopes: + * callbacks, oidc_logout, allowed_origins, + * web_origins, tenant, global, config_route, + * callback_url_template, jwt_configuration, + * jwt_configuration.lifetime_in_seconds, jwt_configuration.secret_encoded, + * jwt_configuration.scopes, jwt_configuration.alg, api_type, + * logo_uri, allowed_clients, owners, custom_login_page, + * custom_login_page_off, sso, addons, form_template, + * custom_login_page_codeview, resource_servers, client_metadata, + * mobile, mobile.android, mobile.ios, allowed_logout_urls, + * token_endpoint_auth_method, is_first_party, oidc_conformant, + * is_token_endpoint_ip_header_trusted, initiate_login_uri, grant_types, + * refresh_token, refresh_token.rotation_type, refresh_token.expiration_type, + * refresh_token.leeway, refresh_token.token_lifetime, refresh_token.policies, organization_usage, + * organization_require_behavior. + *
      • + *
      • + * The following properties can only be retrieved with the read:client_keys or read:client_credentials scopes: + * encryption_key, encryption_key.pub, encryption_key.cert, + * client_secret, client_authentication_methods and signing_key. + *
      • + *

      */ public ManagementApiHttpResponse get( String id, GetClientRequestParameters request, RequestOptions requestOptions) { @@ -463,6 +547,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -521,13 +610,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a client and related configuration (rules, connections, etc). */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -569,15 +662,15 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public ManagementApiHttpResponse update(String id) { @@ -585,15 +678,31 @@ public ManagementApiHttpResponse update(String id) } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. + *

      Notes:

      + *
        + *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • + *
      + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateClientRequestContent.builder().build(), requestOptions); + } + + /** + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public ManagementApiHttpResponse update( @@ -602,24 +711,28 @@ public ManagementApiHttpResponse update( } /** - * Updates a client's settings. For more information, read <a href="https://www.auth0.com/docs/get-started/applications"> Applications in Auth0</a> and <a href="https://www.auth0.com/docs/authenticate/single-sign-on"> Single Sign-On</a>. + * Updates a client's settings. For more information, read Applications in Auth0 and Single Sign-On. *

      Notes:

      *
        *
      • The client_secret and signing_key attributes can only be updated with the update:client_keys scope.
      • - *
      • The <code>client_authentication_methods</code> and <code>token_endpoint_auth_method</code> properties are mutually exclusive. Use <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method. Otherwise, use <code>token_endpoint_auth_method</code> to configure the client with client secret (basic or post) or with no authentication method (none).
      • - *
      • When using <code>client_authentication_methods</code> to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • - *
      • To configure <code>client_authentication_methods</code>, the <code>update:client_credentials</code> scope is required.
      • - *
      • To configure <code>client_authentication_methods</code>, the property <code>jwt_configuration.alg</code> must be set to RS256.
      • - *
      • To change a client's <code>is_first_party</code> property to <code>false</code>, the <code>organization_usage</code> and <code>organization_require_behavior</code> properties must be unset.
      • + *
      • The client_authentication_methods and token_endpoint_auth_method properties are mutually exclusive. Use client_authentication_methods to configure the client with Private Key JWT authentication method. Otherwise, use token_endpoint_auth_method to configure the client with client secret (basic or post) or with no authentication method (none).
      • + *
      • When using client_authentication_methods to configure the client with Private Key JWT authentication method, only specify the credential IDs that were generated when creating the credentials on the client.
      • + *
      • To configure client_authentication_methods, the update:client_credentials scope is required.
      • + *
      • To configure client_authentication_methods, the property jwt_configuration.alg must be set to RS256.
      • + *
      • To change a client's is_first_party property to false, the organization_usage and organization_require_behavior properties must be unset.
      • *
      */ public ManagementApiHttpResponse update( String id, UpdateClientRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -628,7 +741,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -678,7 +791,7 @@ public ManagementApiHttpResponse update( /** * Rotate a client secret. *

      This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

      - *

      For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

      + *

      For more information, read Rotate Client Secrets.

      */ public ManagementApiHttpResponse rotateSecret(String id) { return rotateSecret(id, null); @@ -687,18 +800,22 @@ public ManagementApiHttpResponse rotateSecret /** * Rotate a client secret. *

      This endpoint cannot be used with clients configured with Private Key JWT authentication method (client_authentication_methods configured with private_key_jwt). The generated secret is NOT base64 encoded.

      - *

      For more information, read <a href="https://www.auth0.com/docs/get-started/applications/rotate-client-secret">Rotate Client Secrets</a>.

      + *

      For more information, read Rotate Client Secrets.

      */ public ManagementApiHttpResponse rotateSecret( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(id) - .addPathSegments("rotate-secret") - .build(); + .addPathSegments("rotate-secret"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java index 649d5b42c..4f3b2e2ea 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionProfilesClient.java @@ -55,6 +55,13 @@ public ManagementApiHttpResponse> list() { return list(ListConnectionProfileRequestParameters.builder().build()); } + /** + * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListConnectionProfileRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of Connection Profiles. This endpoint supports Checkpoint pagination. */ @@ -76,6 +83,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -145,10 +157,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateConnectionProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connection-profiles") - .build(); + .addPathSegments("connection-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -157,7 +173,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -217,12 +233,16 @@ public ManagementApiHttpResponse l */ public ManagementApiHttpResponse listTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connection-profiles/templates") - .build(); + .addPathSegments("connection-profiles/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -275,13 +295,17 @@ public ManagementApiHttpResponse ge */ public ManagementApiHttpResponse getTemplate( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -337,13 +361,17 @@ public ManagementApiHttpResponse get(String */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -398,13 +426,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a single Connection Profile specified by ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -449,6 +481,14 @@ public ManagementApiHttpResponse update( return update(id, UpdateConnectionProfileRequestContent.builder().build()); } + /** + * Update the details of a specific Connection Profile. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateConnectionProfileRequestContent.builder().build(), requestOptions); + } + /** * Update the details of a specific Connection Profile. */ @@ -462,11 +502,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateConnectionProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connection-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -475,7 +519,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java index 9f698a3b2..744b157d7 100644 --- a/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawConnectionsClient.java @@ -48,40 +48,60 @@ public RawConnectionsClient(ClientOptions clientOptions) { } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list() { return list(ListConnectionsQueryParameters.builder().build()); } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListConnectionsQueryParameters.builder().build(), requestOptions); + } + + /** + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( ListConnectionsQueryParameters request) { @@ -89,20 +109,20 @@ public ManagementApiHttpResponse> list( } /** - * Retrieves detailed list of all <a href="https://auth0.com/docs/authenticate/identity-providers">connections</a> that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. + * Retrieves detailed list of all connections that match the specified strategy. If no strategy is provided, all connections within your tenant are retrieved. This action can accept a list of fields to include or exclude from the resulting list of connections. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 connections.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( ListConnectionsQueryParameters request, RequestOptions requestOptions) { @@ -130,6 +150,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "strategy", request.getStrategy().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -186,23 +211,27 @@ public ManagementApiHttpResponse> list( } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

      <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      + * Creates a new connection according to the JSON object received in body. + *

      Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      */ public ManagementApiHttpResponse create(CreateConnectionRequestContent request) { return create(request, null); } /** - * Creates a new connection according to the JSON object received in <code>body</code>. - *

      <b>Note:</b> If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      + * Creates a new connection according to the JSON object received in body. + *

      Note: If a connection with the same name was recently deleted and had a large number of associated users, the deletion may still be processing. Creating a new connection with that name before the deletion completes may fail or produce unexpected results.

      */ public ManagementApiHttpResponse create( CreateConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("connections") - .build(); + .addPathSegments("connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -211,7 +240,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -259,14 +288,21 @@ public ManagementApiHttpResponse create( } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public ManagementApiHttpResponse get(String id) { return get(id, GetConnectionRequestParameters.builder().build()); } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetConnectionRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public ManagementApiHttpResponse get( String id, GetConnectionRequestParameters request) { @@ -274,7 +310,7 @@ public ManagementApiHttpResponse get( } /** - * Retrieve details for a specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> along with options that can be used for identity provider configuration. + * Retrieve details for a specified connection along with options that can be used for identity provider configuration. */ public ManagementApiHttpResponse get( String id, GetConnectionRequestParameters request, RequestOptions requestOptions) { @@ -290,6 +326,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -338,25 +379,29 @@ public ManagementApiHttpResponse get( } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

      <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

      + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

      Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

      */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Removes a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. - *

      <b>Note:</b> If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent <a href="https://auth0.com/docs/api/management/v2/connections/post-connections">create connection</a> requests, if they use an identical connection name.

      + * Removes a specific connection from your tenant. This action cannot be undone. Once removed, users can no longer use this connection to authenticate. + *

      Note: If your connection has a large amount of users associated with it, please be aware that this operation can be long running after the response is returned and may impact concurrent create connection requests, if they use an identical connection name.

      */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -398,16 +443,24 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

      <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateConnectionRequestContent.builder().build()); } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

      <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateConnectionRequestContent.builder().build(), requestOptions); + } + + /** + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public ManagementApiHttpResponse update( String id, UpdateConnectionRequestContent request) { @@ -415,16 +468,20 @@ public ManagementApiHttpResponse update( } /** - * Update details for a specific <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a>, including option properties for identity provider configuration. - *

      <b>Note</b>: If you use the <code>options</code> parameter, the entire <code>options</code> object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      + * Update details for a specific connection, including option properties for identity provider configuration. + *

      Note: If you use the options parameter, the entire options object is overriden. To avoid partial data or other issues, ensure all parameters are present when using this option.

      */ public ManagementApiHttpResponse update( String id, UpdateConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -433,7 +490,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -484,24 +541,28 @@ public ManagementApiHttpResponse update( } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public ManagementApiHttpResponse checkStatus(String id) { return checkStatus(id, null); } /** - * Retrieves the status of an ad/ldap connection referenced by its <code>ID</code>. <code>200 OK</code> http status code response is returned when the connection is online, otherwise a <code>404</code> status code is returned along with an error message + * Retrieves the status of an ad/ldap connection referenced by its ID. 200 OK http status code response is returned when the connection is online, otherwise a 404 status code is returned along with an error message */ public ManagementApiHttpResponse checkStatus(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("status") - .build(); + .addPathSegments("status"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java index 145bc8011..573008d63 100644 --- a/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawCustomDomainsClient.java @@ -46,21 +46,28 @@ public RawCustomDomainsClient(ClientOptions clientOptions) { } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public ManagementApiHttpResponse> list() { return list(ListCustomDomainsRequestParameters.builder().build()); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListCustomDomainsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details on custom domains. */ public ManagementApiHttpResponse> list(ListCustomDomainsRequestParameters request) { return list(request, null); } /** - * Retrieve details on <a href="https://auth0.com/docs/custom-domains">custom domains</a>. + * Retrieve details on custom domains. */ public ManagementApiHttpResponse> list( ListCustomDomainsRequestParameters request, RequestOptions requestOptions) { @@ -82,6 +89,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "sort", request.getSort().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -159,10 +171,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateCustomDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("custom-domains") - .build(); + .addPathSegments("custom-domains"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -171,7 +187,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -230,13 +246,17 @@ public ManagementApiHttpResponse get(String id) * Retrieve a custom domain configuration and status. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -293,13 +313,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a custom domain and stop serving requests for it. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -347,11 +371,11 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -359,7 +383,7 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public ManagementApiHttpResponse update(String id) { @@ -373,11 +397,11 @@ public ManagementApiHttpResponse update(Strin *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -385,7 +409,34 @@ public ManagementApiHttpResponse update(Strin *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • + *
      + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateCustomDomainRequestContent.builder().build(), requestOptions); + } + + /** + * Update a custom domain. + *

      These are the attributes that can be updated:

      + *
        + *
      • custom_client_ip_header
      • + *
      • tls_policy
      • + *
      + *

      Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
      To update the custom_client_ip_header for a domain, the body to + * send should be: + *
      { "custom_client_ip_header": "cf-connecting-ip" }

      + *

      Updating TLS_POLICY for a custom domain
      To update the tls_policy for a domain, the body to send should be: + *
      { "tls_policy": "recommended" }

      + *

      TLS Policies:

      + *
        + *
      • recommended - for modern usage this includes TLS 1.2 only
      • + *
      + *

      Some considerations:

      + *
        + *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public ManagementApiHttpResponse update( @@ -400,11 +451,11 @@ public ManagementApiHttpResponse update( *
    • custom_client_ip_header
    • *
    • tls_policy
    • *
    - *

    <h5>Updating CUSTOM_CLIENT_IP_HEADER for a custom domain</h5>To update the <code>custom_client_ip_header</code> for a domain, the body to + *

    Updating CUSTOM_CLIENT_IP_HEADER for a custom domain
    To update the custom_client_ip_header for a domain, the body to * send should be: - * <pre><code>{ "custom_client_ip_header": "cf-connecting-ip" }</code></pre>

    - *

    <h5>Updating TLS_POLICY for a custom domain</h5>To update the <code>tls_policy</code> for a domain, the body to send should be: - * <pre><code>{ "tls_policy": "recommended" }</code></pre>

    + *
    { "custom_client_ip_header": "cf-connecting-ip" }

    + *

    Updating TLS_POLICY for a custom domain
    To update the tls_policy for a domain, the body to send should be: + *
    { "tls_policy": "recommended" }

    *

    TLS Policies:

    *
      *
    • recommended - for modern usage this includes TLS 1.2 only
    • @@ -412,16 +463,20 @@ public ManagementApiHttpResponse update( *

      Some considerations:

      *
        *
      • The TLS ciphers and protocols available in each TLS policy follow industry recommendations, and may be updated occasionally.
      • - *
      • The <code>compatible</code> TLS policy is no longer supported.
      • + *
      • The compatible TLS policy is no longer supported.
      • *
      */ public ManagementApiHttpResponse update( String id, UpdateCustomDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -430,7 +485,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -486,14 +541,18 @@ public ManagementApiHttpResponse test(String id * Run the test process on a custom domain. */ public ManagementApiHttpResponse test(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -541,10 +600,10 @@ public ManagementApiHttpResponse test(String id /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public ManagementApiHttpResponse verify(String id) { return verify(id, null); @@ -552,21 +611,25 @@ public ManagementApiHttpResponse verify(Strin /** * Run the verification process on a custom domain. - *

      Note: Check the <code>status</code> field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      - *

      For <code>self_managed_certs</code>, when the custom domain is verified for the first time, the response will also include the <code>cname_api_key</code> which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      - *

      <a href="https://auth0.com/docs/custom-domains#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Auth0 Managed certificates. - * <a href="https://auth0.com/docs/custom-domains/self-managed-certificates#step-2-verify-ownership">Learn more</a> about verifying custom domains that use Self Managed certificates.

      + *

      Note: Check the status field to see its verification status. Once verification is complete, it may take up to 10 minutes before the custom domain can start accepting requests.

      + *

      For self_managed_certs, when the custom domain is verified for the first time, the response will also include the cname_api_key which you will need to configure your proxy. This key must be kept secret, and is used to validate the proxy requests.

      + *

      Learn more about verifying custom domains that use Auth0 Managed certificates. + * Learn more about verifying custom domains that use Self Managed certificates.

      */ public ManagementApiHttpResponse verify( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("custom-domains") .addPathSegment(id) - .addPathSegments("verify") - .build(); + .addPathSegments("verify"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java index 7412f575f..90bb8a4a1 100644 --- a/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawDeviceCredentialsClient.java @@ -42,14 +42,21 @@ public RawDeviceCredentialsClient(ClientOptions clientOptions) { } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public ManagementApiHttpResponse> list() { return list(ListDeviceCredentialsRequestParameters.builder().build()); } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListDeviceCredentialsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public ManagementApiHttpResponse> list( ListDeviceCredentialsRequestParameters request) { @@ -57,7 +64,7 @@ public ManagementApiHttpResponse> list( } /** - * Retrieve device credential information (<code>public_key</code>, <code>refresh_token</code>, or <code>rotating_refresh_token</code>) associated with a specific user. + * Retrieve device credential information (public_key, refresh_token, or rotating_refresh_token) associated with a specific user. */ public ManagementApiHttpResponse> list( ListDeviceCredentialsRequestParameters request, RequestOptions requestOptions) { @@ -89,6 +96,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "type", request.getType().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -147,8 +159,8 @@ public ManagementApiHttpResponse> list( } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public ManagementApiHttpResponse createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request) { @@ -156,15 +168,19 @@ public ManagementApiHttpResponse } /** - * Create a device credential public key to manage refresh token rotation for a given <code>user_id</code>. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. - *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read <a href="https://auth0.com/docs/get-started/tenant-settings/signing-keys"> Signing Keys</a>.

      + * Create a device credential public key to manage refresh token rotation for a given user_id. Device Credentials APIs are designed for ad-hoc administrative use only and paging is by default enabled for GET requests. + *

      When refresh token rotation is enabled, the endpoint becomes consistent. For more information, read Signing Keys.

      */ public ManagementApiHttpResponse createPublicKey( CreatePublicKeyDeviceCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("device-credentials") - .build(); + .addPathSegments("device-credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -173,7 +189,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -232,13 +248,17 @@ public ManagementApiHttpResponse delete(String id) { * Permanently delete a device credential (such as a refresh token or public key) with the given ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("device-credentials") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java index 3e8c47f32..0d71ba5ab 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEmailTemplatesClient.java @@ -54,10 +54,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateEmailTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("email-templates") - .build(); + .addPathSegments("email-templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -66,7 +70,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -126,13 +130,17 @@ public ManagementApiHttpResponse get(EmailTempl */ public ManagementApiHttpResponse get( EmailTemplateNameEnum templateName, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("email-templates") - .addPathSegment(templateName.toString()) - .build(); + .addPathSegment(templateName.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -188,11 +196,15 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( EmailTemplateNameEnum templateName, SetEmailTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("email-templates") - .addPathSegment(templateName.toString()) - .build(); + .addPathSegment(templateName.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -201,7 +213,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -255,6 +267,14 @@ public ManagementApiHttpResponse update(Emai return update(templateName, UpdateEmailTemplateRequestContent.builder().build()); } + /** + * Modify an email template. + */ + public ManagementApiHttpResponse update( + EmailTemplateNameEnum templateName, RequestOptions requestOptions) { + return update(templateName, UpdateEmailTemplateRequestContent.builder().build(), requestOptions); + } + /** * Modify an email template. */ @@ -270,11 +290,15 @@ public ManagementApiHttpResponse update( EmailTemplateNameEnum templateName, UpdateEmailTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("email-templates") - .addPathSegment(templateName.toString()) - .build(); + .addPathSegment(templateName.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -283,7 +307,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java index eaa8ea2a3..2b3c0ddb5 100644 --- a/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawEventStreamsClient.java @@ -52,6 +52,11 @@ public ManagementApiHttpResponse> return list(ListEventStreamsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListEventStreamsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( ListEventStreamsRequestParameters request) { return list(request, null); @@ -67,6 +72,11 @@ public ManagementApiHttpResponse> httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -129,10 +139,14 @@ public ManagementApiHttpResponse create(EventS public ManagementApiHttpResponse create( EventStreamsCreateRequest request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("event-streams") - .build(); + .addPathSegments("event-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -141,7 +155,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -193,13 +207,17 @@ public ManagementApiHttpResponse get(String id) { } public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -247,13 +265,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -298,6 +320,11 @@ public ManagementApiHttpResponse update(String return update(id, UpdateEventStreamRequestContent.builder().build()); } + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateEventStreamRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update( String id, UpdateEventStreamRequestContent request) { return update(id, request, null); @@ -305,11 +332,15 @@ public ManagementApiHttpResponse update( public ManagementApiHttpResponse update( String id, UpdateEventStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -318,7 +349,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -369,12 +400,16 @@ public ManagementApiHttpResponse test public ManagementApiHttpResponse test( String id, CreateEventStreamTestEventRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) - .addPathSegments("test") - .build(); + .addPathSegments("test"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -383,7 +418,7 @@ public ManagementApiHttpResponse test throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java b/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java index f9ac8c90b..4ec62d732 100644 --- a/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawFlowsClient.java @@ -49,6 +49,10 @@ public ManagementApiHttpResponse> list() { return list(ListFlowsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListFlowsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list(ListFlowsRequestParameters request) { return list(request, null); } @@ -71,6 +75,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -132,10 +141,14 @@ public ManagementApiHttpResponse create(CreateFlowReq public ManagementApiHttpResponse create( CreateFlowRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("flows") - .build(); + .addPathSegments("flows"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -144,7 +157,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -192,6 +205,10 @@ public ManagementApiHttpResponse get(String id) { return get(id, GetFlowRequestParameters.builder().build()); } + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetFlowRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse get(String id, GetFlowRequestParameters request) { return get(id, request, null); } @@ -206,6 +223,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -258,13 +280,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -312,17 +338,25 @@ public ManagementApiHttpResponse update(String id) { return update(id, UpdateFlowRequestContent.builder().build()); } + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateFlowRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update(String id, UpdateFlowRequestContent request) { return update(id, request, null); } public ManagementApiHttpResponse update( String id, UpdateFlowRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -331,7 +365,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawFormsClient.java b/src/main/java/com/auth0/client/mgmt/RawFormsClient.java index dbcca1501..c3c05bbcb 100644 --- a/src/main/java/com/auth0/client/mgmt/RawFormsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawFormsClient.java @@ -49,6 +49,10 @@ public ManagementApiHttpResponse> list() { return list(ListFormsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListFormsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list(ListFormsRequestParameters request) { return list(request, null); } @@ -67,6 +71,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -128,10 +137,14 @@ public ManagementApiHttpResponse create(CreateFormReq public ManagementApiHttpResponse create( CreateFormRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("forms") - .build(); + .addPathSegments("forms"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +153,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -188,6 +201,10 @@ public ManagementApiHttpResponse get(String id) { return get(id, GetFormRequestParameters.builder().build()); } + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetFormRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse get(String id, GetFormRequestParameters request) { return get(id, request, null); } @@ -202,6 +219,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -254,13 +276,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("forms") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -305,17 +331,25 @@ public ManagementApiHttpResponse update(String id) { return update(id, UpdateFormRequestContent.builder().build()); } + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateFormRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update(String id, UpdateFormRequestContent request) { return update(id, request, null); } public ManagementApiHttpResponse update( String id, UpdateFormRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("forms") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -324,7 +358,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java index a99ca73c5..5b5eca032 100644 --- a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java @@ -45,6 +45,13 @@ public ManagementApiHttpResponse> list() { return list(ListGroupsRequestParameters.builder().build()); } + /** + * List all groups in your tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListGroupsRequestParameters.builder().build(), requestOptions); + } + /** * List all groups in your tenant. */ @@ -85,6 +92,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -150,13 +162,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieve a group by its ID. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("groups") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawHooksClient.java b/src/main/java/com/auth0/client/mgmt/RawHooksClient.java index 316459bd5..72b6530a8 100644 --- a/src/main/java/com/auth0/client/mgmt/RawHooksClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawHooksClient.java @@ -47,21 +47,28 @@ public RawHooksClient(ClientOptions clientOptions) { } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse> list() { return list(ListHooksRequestParameters.builder().build()); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListHooksRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse> list(ListHooksRequestParameters request) { return list(request, null); } /** - * Retrieve all <a href="https://auth0.com/docs/hooks">hooks</a>. Accepts a list of fields to include or exclude in the result. + * Retrieve all hooks. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse> list( ListHooksRequestParameters request, RequestOptions requestOptions) { @@ -85,6 +92,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "triggerId", request.getTriggerId().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -155,10 +167,14 @@ public ManagementApiHttpResponse create(CreateHookReq */ public ManagementApiHttpResponse create( CreateHookRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("hooks") - .build(); + .addPathSegments("hooks"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -167,7 +183,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -215,21 +231,28 @@ public ManagementApiHttpResponse create( } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public ManagementApiHttpResponse get(String id) { return get(id, GetHookRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetHookRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public ManagementApiHttpResponse get(String id, GetHookRequestParameters request) { return get(id, request, null); } /** - * Retrieve <a href="https://auth0.com/docs/hooks">a hook</a> by its ID. Accepts a list of fields to include in the result. + * Retrieve a hook by its ID. Accepts a list of fields to include in the result. */ public ManagementApiHttpResponse get( String id, GetHookRequestParameters request, RequestOptions requestOptions) { @@ -241,6 +264,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "fields", request.getFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -299,13 +327,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a hook. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -353,6 +385,13 @@ public ManagementApiHttpResponse update(String id) { return update(id, UpdateHookRequestContent.builder().build()); } + /** + * Update an existing hook. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateHookRequestContent.builder().build(), requestOptions); + } + /** * Update an existing hook. */ @@ -365,11 +404,15 @@ public ManagementApiHttpResponse update(String id, Up */ public ManagementApiHttpResponse update( String id, UpdateHookRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -378,7 +421,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawJobsClient.java b/src/main/java/com/auth0/client/mgmt/RawJobsClient.java index 65b0c8df7..cd2881e48 100644 --- a/src/main/java/com/auth0/client/mgmt/RawJobsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawJobsClient.java @@ -42,13 +42,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieves a job. Useful to check its status. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java b/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java index 08fdd83d3..663794793 100644 --- a/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawLogStreamsClient.java @@ -42,8 +42,8 @@ public RawLogStreamsClient(ClientOptions clientOptions) { } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -107,15 +107,15 @@ public RawLogStreamsClient(ClientOptions clientOptions) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public ManagementApiHttpResponse> list() { return list(null); } /** - * Retrieve details on <a href="https://auth0.com/docs/logs/streams">log streams</a>. - *

      <h5>Sample Response</h5><pre><code>[{ + * Retrieve details on log streams. + *

      Sample Response
      [{
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -179,15 +179,19 @@ public ManagementApiHttpResponse> list() {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }]</code></pre>

      + * }]

      */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("log-streams") - .build(); + .addPathSegments("log-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -233,9 +237,9 @@ public ManagementApiHttpResponse> list(RequestOpti /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -244,8 +248,8 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -256,17 +260,17 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -276,9 +280,9 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -286,8 +290,8 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -298,17 +302,17 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -317,9 +321,9 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -328,8 +332,8 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -340,16 +344,16 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -357,7 +361,7 @@ public ManagementApiHttpResponse> list(RequestOpti
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse create(CreateLogStreamRequestContent request) { return create(request, null); @@ -365,9 +369,9 @@ public ManagementApiHttpResponse create(CreateLo /** * Create a log stream. - *

      <h5>Log Stream Types</h5> The <code>type</code> of log stream being created determines the properties required in the <code>sink</code> payload. - * <h5>HTTP Stream</h5> For an <code>http</code> Stream, the <code>sink</code> properties are listed in the payload below - * Request: <pre><code>{ + *

      Log Stream Types
      The type of log stream being created determines the properties required in the sink payload. + *
      HTTP Stream
      For an http Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "http",
            * 	"sink": {
      @@ -376,8 +380,8 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -388,17 +392,17 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"httpContentFormat": "JSONLINES|JSONARRAY",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Amazon EventBridge Stream</h5> For an <code>eventbridge</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Amazon EventBridge Stream
      For an eventbridge Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventbridge",
            * 	"sink": {
            * 		"awsRegion": "string",
            * 		"awsAccountId": "string"
            * 	}
      -     * }</code></pre>
      -     * The response will include an additional field <code>awsPartnerEventSource</code> in the <code>sink</code>: <pre><code>{
      +     * }
      + * The response will include an additional field awsPartnerEventSource in the sink:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -408,9 +412,9 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Azure Event Grid Stream</h5> For an <code>Azure Event Grid</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Azure Event Grid Stream
      For an Azure Event Grid Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "eventgrid",
            * 	"sink": {
      @@ -418,8 +422,8 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"azureResourceGroup": "string",
            * 		"azureRegion": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -430,17 +434,17 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"azureRegion": "string",
            * 		"azurePartnerTopic": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Datadog Stream</h5> For a <code>Datadog</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Datadog Stream
      For a Datadog Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "datadog",
            * 	"sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -449,9 +453,9 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}
      -     * }</code></pre>
      -     * <h5>Splunk Stream</h5> For a <code>Splunk</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Splunk Stream
      For a Splunk Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "splunk",
            * 	"sink": {
      @@ -460,8 +464,8 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -472,16 +476,16 @@ public ManagementApiHttpResponse create(CreateLo
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre>
      -     * <h5>Sumo Logic Stream</h5> For a <code>Sumo Logic</code> Stream, the <code>sink</code> properties are listed in the payload below
      -     * Request: <pre><code>{
      +     * }
      + *
      Sumo Logic Stream
      For a Sumo Logic Stream, the sink properties are listed in the payload below + * Request:
      {
            * 	"name": "string",
            * 	"type": "sumo",
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>
      -     * Response: <pre><code>{
      +     * }
      + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -489,14 +493,18 @@ public ManagementApiHttpResponse create(CreateLo
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse create( CreateLogStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("log-streams") - .build(); + .addPathSegments("log-streams"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -505,7 +513,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -554,7 +562,7 @@ public ManagementApiHttpResponse create( /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -564,7 +572,7 @@ public ManagementApiHttpResponse create(
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -575,7 +583,7 @@ public ManagementApiHttpResponse create(
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -584,8 +592,8 @@ public ManagementApiHttpResponse create(
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -594,10 +602,10 @@ public ManagementApiHttpResponse create(
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -608,19 +616,19 @@ public ManagementApiHttpResponse create(
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -628,9 +636,9 @@ public ManagementApiHttpResponse create(
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -641,7 +649,7 @@ public ManagementApiHttpResponse create(
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -649,10 +657,10 @@ public ManagementApiHttpResponse create(
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public ManagementApiHttpResponse get(String id) { return get(id, null); @@ -660,7 +668,7 @@ public ManagementApiHttpResponse get(String id) { /** * Retrieve a log stream configuration and status. - *

      <h5>Sample responses</h5><h5>Amazon EventBridge Log Stream</h5><pre><code>{ + *

      Sample responses
      Amazon EventBridge Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "eventbridge",
      @@ -670,7 +678,7 @@ public ManagementApiHttpResponse get(String id) {
            * 		"awsRegion": "string",
            * 		"awsPartnerEventSource": "string"
            * 	}
      -     * }</code></pre> <h5>HTTP Log Stream</h5><pre><code>{
      +     * }
      HTTP Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "http",
      @@ -681,7 +689,7 @@ public ManagementApiHttpResponse get(String id) {
            * 		"httpEndpoint": "string",
            * 		"httpAuthorization": "string"
            * 	}
      -     * }</code></pre> <h5>Datadog Log Stream</h5><pre><code>{
      +     * }
      Datadog Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "datadog",
      @@ -690,8 +698,8 @@ public ManagementApiHttpResponse get(String id) {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            * 	}

      - *

      }</code></pre><h5>Mixpanel</h5>

      - *
      Request: <pre><code>{
      +     * 

      }

      Mixpanel

      + *
      Request: 
      {
            *   "name": "string",
            *   "type": "mixpanel",
            *   "sink": {
      @@ -700,10 +708,10 @@ public ManagementApiHttpResponse get(String id) {
            * 	"mixpanelServiceAccountUsername": "string",
            * 	"mixpanelServiceAccountPassword": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      * * - * Response: <pre><code>{ + * Response:
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "mixpanel",
      @@ -714,19 +722,19 @@ public ManagementApiHttpResponse get(String id) {
            * 	  "mixpanelServiceAccountUsername": "string",
            * 	  "mixpanelServiceAccountPassword": "string" // the following is redacted on return
            * 	}
      -     *   } </code></pre>
      +     *   } 
      * - * <h5>Segment</h5> + *
      Segment
      * - * Request: <pre><code> { + * Request:
       {
            *   "name": "string",
            *   "type": "segment",
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * }</code></pre>
      +     * }
      * - * Response: <pre><code>{ + * Response:
      {
            *   "id": "string",
            *   "name": "string",
            *   "type": "segment",
      @@ -734,9 +742,9 @@ public ManagementApiHttpResponse get(String id) {
            *   "sink": {
            * 	"segmentWriteKey": "string"
            *   }
      -     * } </code></pre>
      +     * } 
      *
      - *

      <h5>Splunk Log Stream</h5><pre><code>{ + *

      Splunk Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "splunk",
      @@ -747,7 +755,7 @@ public ManagementApiHttpResponse get(String id) {
            * 		"splunkPort": "string",
            * 		"splunkSecure": "boolean"
            * 	}
      -     * }</code></pre> <h5>Sumo Logic Log Stream</h5><pre><code>{
      +     * }
      Sumo Logic Log Stream
      {
            * 	"id": "string",
            * 	"name": "string",
            * 	"type": "sumo",
      @@ -755,19 +763,23 @@ public ManagementApiHttpResponse get(String id) {
            * 	"sink": {
            * 		"sumoSourceAddress": "string",
            * 	}
      -     * }</code></pre> <h5>Status</h5> The <code>status</code> of a log stream maybe any of the following:
      -     * 1. <code>active</code> - Stream is currently enabled.
      -     * 2. <code>paused</code> - Stream is currently user disabled and will not attempt log delivery.
      -     * 3. <code>suspended</code> - Stream is currently disabled because of errors and will not attempt log delivery.

      + * }
      Status
      The status of a log stream maybe any of the following: + * 1. active - Stream is currently enabled. + * 2. paused - Stream is currently user disabled and will not attempt log delivery. + * 3. suspended - Stream is currently disabled because of errors and will not attempt log delivery.

      */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -821,13 +833,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a log stream. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -873,40 +889,40 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateLogStreamRequestContent.builder().build()); @@ -914,40 +930,81 @@ public ManagementApiHttpResponse update(String i /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
      +     * 	"status": "active|paused"
      +     * }
      + *
      Update the name of a log stream
      {
      +     * 	"name": "string"
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
      +     *   "sink": {
      +     *     "httpEndpoint": "string",
      +     *     "httpContentType": "string",
      +     *     "httpContentFormat": "JSONARRAY|JSONLINES",
      +     *     "httpAuthorization": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
      +     *   "sink": {
      +     * 		"datadogRegion": "string",
      +     * 		"datadogApiKey": "string"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
      +     *   "sink": {
      +     *     "splunkDomain": "string",
      +     *     "splunkToken": "string",
      +     *     "splunkPort": "string",
      +     *     "splunkSecure": "boolean"
      +     *   }
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
      +     *   "sink": {
      +     *     "sumoSourceAddress": "string"
      +     *   }
      +     * }

      + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateLogStreamRequestContent.builder().build(), requestOptions); + } + + /** + * Update a log stream. + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse update( String id, UpdateLogStreamRequestContent request) { @@ -956,48 +1013,52 @@ public ManagementApiHttpResponse update( /** * Update a log stream. - *

      <h4>Examples of how to use the PATCH endpoint.</h4> The following fields may be updated in a PATCH operation: <ul><li>name</li><li>status</li><li>sink</li></ul> Note: For log streams of type <code>eventbridge</code> and <code>eventgrid</code>, updating the <code>sink</code> is not permitted. - * <h5>Update the status of a log stream</h5><pre><code>{ + *

      Examples of how to use the PATCH endpoint.

      The following fields may be updated in a PATCH operation:
      • name
      • status
      • sink
      Note: For log streams of type eventbridge and eventgrid, updating the sink is not permitted. + *
      Update the status of a log stream
      {
            * 	"status": "active|paused"
      -     * }</code></pre>
      -     * <h5>Update the name of a log stream</h5><pre><code>{
      +     * }
      + *
      Update the name of a log stream
      {
            * 	"name": "string"
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>http</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type http
      {
            *   "sink": {
            *     "httpEndpoint": "string",
            *     "httpContentType": "string",
            *     "httpContentFormat": "JSONARRAY|JSONLINES",
            *     "httpAuthorization": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>datadog</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type datadog
      {
            *   "sink": {
            * 		"datadogRegion": "string",
            * 		"datadogApiKey": "string"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>splunk</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type splunk
      {
            *   "sink": {
            *     "splunkDomain": "string",
            *     "splunkToken": "string",
            *     "splunkPort": "string",
            *     "splunkSecure": "boolean"
            *   }
      -     * }</code></pre>
      -     * <h5>Update the sink properties of a stream of type <code>sumo</code></h5><pre><code>{
      +     * }
      + *
      Update the sink properties of a stream of type sumo
      {
            *   "sink": {
            *     "sumoSourceAddress": "string"
            *   }
      -     * }</code></pre>

      + * }

      */ public ManagementApiHttpResponse update( String id, UpdateLogStreamRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("log-streams") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -1006,7 +1067,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawLogsClient.java b/src/main/java/com/auth0/client/mgmt/RawLogsClient.java index 8b6c77553..5bae14d76 100644 --- a/src/main/java/com/auth0/client/mgmt/RawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawLogsClient.java @@ -40,26 +40,26 @@ public RawLogsClient(ClientOptions clientOptions) { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public ManagementApiHttpResponse> list() { return list(ListLogsRequestParameters.builder().build()); @@ -67,26 +67,53 @@ public ManagementApiHttpResponse> list() { /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListLogsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public ManagementApiHttpResponse> list(ListLogsRequestParameters request) { return list(request, null); @@ -94,26 +121,26 @@ public ManagementApiHttpResponse> list(ListLogsRequestPa /** * Retrieve log entries that match the specified search criteria (or all log entries if no criteria specified). - *

      Set custom search criteria using the <code>q</code> parameter, or search from a specific log ID (<i>"search from checkpoint"</i>).

      - *

      For more information on all possible event types, their respective acronyms, and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

      - *

      <h5>To set custom search criteria, use the following parameters:</h5>

      - *

      <ul> - * <li><b>q:</b> Search Criteria using <a href="https://auth0.com/docs/logs/log-search-query-syntax">Query String Syntax</a></li> - * <li><b>page:</b> Page index of the results to return. First page is 0.</li> - * <li><b>per_page:</b> Number of results per page.</li> - * <li><b>sort:</b> Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`</li> - * <li><b>fields:</b> Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.</li> - * <li><b>include_fields:</b> Whether specified fields are to be included (true) or excluded (false).</li> - * <li><b>include_totals:</b> Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). <b>Deprecated:</b> this field is deprecated and should be removed from use. See <a href="https://auth0.com/docs/product-lifecycle/deprecations-and-migrations/migrate-to-tenant-log-search-v3#pagination">Search Engine V3 Breaking Changes</a></li> - * </ul>

      - *

      For more information on the list of fields that can be used in <code>fields</code> and <code>sort</code>, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

      - *

      Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#retrieve-logs-by-checkpoint">get logs by checkpoint method</a>.

      - *

      <h5>To search from a checkpoint log ID, use the following parameters:</h5> - * <ul> - * <li><b>from:</b> Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the <code>take</code> parameter. If you use <code>from</code> at the same time as <code>q</code>, <code>from</code> takes precedence and <code>q</code> is ignored.</li> - * <li><b>take:</b> Number of entries to retrieve when using the <code>from</code> parameter.</li> - * </ul>

      - *

      <strong>Important:</strong> When fetching logs from a checkpoint log ID, any parameter other than <code>from</code> and <code>take</code> will be ignored, and date ordering is not guaranteed.

      + *

      Set custom search criteria using the q parameter, or search from a specific log ID ("search from checkpoint").

      + *

      For more information on all possible event types, their respective acronyms, and descriptions, see Log Event Type Codes.

      + *

      To set custom search criteria, use the following parameters:

      + *

        + *
      • q: Search Criteria using Query String Syntax
      • + *
      • page: Page index of the results to return. First page is 0.
      • + *
      • per_page: Number of results per page.
      • + *
      • sort: Field to use for sorting appended with `:1` for ascending and `:-1` for descending. e.g. `date:-1`
      • + *
      • fields: Comma-separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields.
      • + *
      • include_fields: Whether specified fields are to be included (true) or excluded (false).
      • + *
      • include_totals: Return results inside an object that contains the total result count (true) or as a direct array of results (false, default). Deprecated: this field is deprecated and should be removed from use. See Search Engine V3 Breaking Changes
      • + *

      + *

      For more information on the list of fields that can be used in fields and sort, see Searchable Fields.

      + *

      Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may paginate only through 1,000 search results. If you exceed this threshold, please redefine your search or use the get logs by checkpoint method.

      + *

      To search from a checkpoint log ID, use the following parameters:
      + *
        + *
      • from: Log Event ID from which to start retrieving logs. You can limit the number of logs returned using the take parameter. If you use from at the same time as q, from takes precedence and q is ignored.
      • + *
      • take: Number of entries to retrieve when using the from parameter.
      • + *

      + *

      Important: When fetching logs from a checkpoint log ID, any parameter other than from and take will be ignored, and date ordering is not guaranteed.

      */ public ManagementApiHttpResponse> list( ListLogsRequestParameters request, RequestOptions requestOptions) { @@ -141,6 +168,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "search", request.getSearch().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -207,13 +239,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieve an individual log event. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("logs") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java b/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java index 9748e193f..92638f1d6 100644 --- a/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawNetworkAclsClient.java @@ -54,6 +54,14 @@ public ManagementApiHttpResponse> return list(ListNetworkAclsRequestParameters.builder().build()); } + /** + * Get all access control list entries for your client. + */ + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListNetworkAclsRequestParameters.builder().build(), requestOptions); + } + /** * Get all access control list entries for your client. */ @@ -75,6 +83,11 @@ public ManagementApiHttpResponse> httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -143,10 +156,14 @@ public ManagementApiHttpResponse create(CreateNetworkAclRequestContent req */ public ManagementApiHttpResponse create( CreateNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("network-acls") - .build(); + .addPathSegments("network-acls"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -155,7 +172,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -214,13 +231,17 @@ public ManagementApiHttpResponse get(String id) { * Get a specific access control list entry for your client. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -276,11 +297,15 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( String id, SetNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -289,7 +314,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -347,13 +372,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete existing access control list for your client. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -404,6 +433,13 @@ public ManagementApiHttpResponse update(String return update(id, UpdateNetworkAclRequestContent.builder().build()); } + /** + * Update existing access control list for your client. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateNetworkAclRequestContent.builder().build(), requestOptions); + } + /** * Update existing access control list for your client. */ @@ -417,11 +453,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateNetworkAclRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("network-acls") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -430,7 +470,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java index c7c7df5f7..999ef2f8d 100644 --- a/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawOrganizationsClient.java @@ -50,18 +50,18 @@ public RawOrganizationsClient(ClientOptions clientOptions) { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list() { return list(ListOrganizationsRequestParameters.builder().build()); @@ -70,18 +70,38 @@ public ManagementApiHttpResponse> list() { /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. + *

      This endpoint supports two types of pagination:

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      + *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      + *

      Checkpoint Pagination

      + *

      To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( ListOrganizationsRequestParameters request) { @@ -91,18 +111,18 @@ public ManagementApiHttpResponse> list( /** * Retrieve detailed list of all Organizations available in your tenant. For more information, see Auth0 Organizations. *

      This endpoint supports two types of pagination:

      - *

      <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

      + *

        + *
      • Offset pagination
      • + *
      • Checkpoint pagination
      • + *

      *

      Checkpoint pagination must be used if you need to retrieve more than 1000 organizations.

      - *

      <h2>Checkpoint Pagination</h2>

      + *

      Checkpoint Pagination

      *

      To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total number of entries to retrieve when using the <code>from</code> parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total number of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( ListOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -118,6 +138,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "sort", request.getSort().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,7 +199,7 @@ public ManagementApiHttpResponse> list( } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public ManagementApiHttpResponse create( CreateOrganizationRequestContent request) { @@ -182,14 +207,18 @@ public ManagementApiHttpResponse create( } /** - * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review <a href="https://auth0.com/docs/manage-users/organizations/create-first-organization">Create Your First Organization</a>. + * Create a new Organization within your tenant. To learn more about Organization settings, behavior, and configuration options, review Create Your First Organization. */ public ManagementApiHttpResponse create( CreateOrganizationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("organizations") - .build(); + .addPathSegments("organizations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -198,7 +227,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -258,13 +287,17 @@ public ManagementApiHttpResponse getByName */ public ManagementApiHttpResponse getByName( String name, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations/name") - .addPathSegment(name) - .build(); + .addPathSegment(name); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -319,13 +352,17 @@ public ManagementApiHttpResponse get(String id) * Retrieve details about a single Organization specified by ID. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -370,7 +407,7 @@ public ManagementApiHttpResponse get(String id, /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); @@ -378,16 +415,20 @@ public ManagementApiHttpResponse delete(String id) { /** * Remove an Organization from your tenant. This action cannot be undone. - *

      <b>Note</b>: Members are automatically disassociated from an Organization when it is deleted. However, this action does <b>not</b> delete these users from your tenant.

      + *

      Note: Members are automatically disassociated from an Organization when it is deleted. However, this action does not delete these users from your tenant.

      */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -432,14 +473,22 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateOrganizationRequestContent.builder().build()); } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateOrganizationRequestContent.builder().build(), requestOptions); + } + + /** + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public ManagementApiHttpResponse update( String id, UpdateOrganizationRequestContent request) { @@ -447,15 +496,19 @@ public ManagementApiHttpResponse update( } /** - * Update the details of a specific <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/create-organizations">Organization</a>, such as name and display name, branding options, and metadata. + * Update the details of a specific Organization, such as name and display name, branding options, and metadata. */ public ManagementApiHttpResponse update( String id, UpdateOrganizationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -464,7 +517,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java b/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java index 502a1d946..6313099a7 100644 --- a/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawPromptsClient.java @@ -35,22 +35,26 @@ public RawPromptsClient(ClientOptions clientOptions) { } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse getSettings() { return getSettings(null); } /** - * Retrieve details of the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Retrieve details of the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse getSettings(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts") - .build(); + .addPathSegments("prompts"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -91,14 +95,21 @@ public ManagementApiHttpResponse getSettings(Request } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse updateSettings() { return updateSettings(UpdateSettingsRequestContent.builder().build()); } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. + */ + public ManagementApiHttpResponse updateSettings(RequestOptions requestOptions) { + return updateSettings(UpdateSettingsRequestContent.builder().build(), requestOptions); + } + + /** + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse updateSettings( UpdateSettingsRequestContent request) { @@ -106,14 +117,18 @@ public ManagementApiHttpResponse updateSettings( } /** - * Update the Universal Login configuration of your tenant. This includes the <a href="https://auth0.com/docs/authenticate/login/auth0-universal-login/identifier-first">Identifier First Authentication</a> and <a href="https://auth0.com/docs/secure/multi-factor-authentication/fido-authentication-with-webauthn/configure-webauthn-device-biometrics-for-mfa">WebAuthn with Device Biometrics for MFA</a> features. + * Update the Universal Login configuration of your tenant. This includes the Identifier First Authentication and WebAuthn with Device Biometrics for MFA features. */ public ManagementApiHttpResponse updateSettings( UpdateSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts") - .build(); + .addPathSegments("prompts"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -122,7 +137,7 @@ public ManagementApiHttpResponse updateSettings( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java index 801e513b9..6be14819c 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java @@ -46,13 +46,17 @@ public ManagementApiHttpResponse get(String id) * Retrieve refresh token information. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -106,13 +110,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a refresh token by its ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -160,6 +168,14 @@ public ManagementApiHttpResponse update(Strin return update(id, UpdateRefreshTokenRequestContent.builder().build()); } + /** + * Update a refresh token by its ID. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateRefreshTokenRequestContent.builder().build(), requestOptions); + } + /** * Update a refresh token by its ID. */ @@ -173,11 +189,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateRefreshTokenRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("refresh-tokens") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -186,7 +206,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java index 847c201ef..2f53ba673 100644 --- a/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawResourceServersClient.java @@ -53,6 +53,13 @@ public ManagementApiHttpResponse> list() { return list(ListResourceServerRequestParameters.builder().build()); } + /** + * Retrieve details of all APIs associated with your tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListResourceServerRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details of all APIs associated with your tenant. */ @@ -82,6 +89,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "identifiers", request.getIdentifiers().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -139,7 +151,7 @@ public ManagementApiHttpResponse> list( } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public ManagementApiHttpResponse create( CreateResourceServerRequestContent request) { @@ -147,14 +159,18 @@ public ManagementApiHttpResponse create( } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public ManagementApiHttpResponse create( CreateResourceServerRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("resource-servers") - .build(); + .addPathSegments("resource-servers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -163,7 +179,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -212,14 +228,21 @@ public ManagementApiHttpResponse create( } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public ManagementApiHttpResponse get(String id) { return get(id, GetResourceServerRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetResourceServerRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve API details with the given ID. */ public ManagementApiHttpResponse get( String id, GetResourceServerRequestParameters request) { @@ -227,7 +250,7 @@ public ManagementApiHttpResponse get( } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public ManagementApiHttpResponse get( String id, GetResourceServerRequestParameters request, RequestOptions requestOptions) { @@ -239,6 +262,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -287,23 +315,27 @@ public ManagementApiHttpResponse get( } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("resource-servers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -345,14 +377,22 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateResourceServerRequestContent.builder().build()); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateResourceServerRequestContent.builder().build(), requestOptions); + } + + /** + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public ManagementApiHttpResponse update( String id, UpdateResourceServerRequestContent request) { @@ -360,15 +400,19 @@ public ManagementApiHttpResponse update( } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public ManagementApiHttpResponse update( String id, UpdateResourceServerRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("resource-servers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -377,7 +421,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java index db4021f68..ce2b991c1 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRolesClient.java @@ -47,7 +47,7 @@ public RawRolesClient(ClientOptions clientOptions) { /** * Retrieve detailed list of user roles created in your tenant. - *

      <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public ManagementApiHttpResponse> list() { return list(ListRolesRequestParameters.builder().build()); @@ -55,7 +55,15 @@ public ManagementApiHttpResponse> list() { /** * Retrieve detailed list of user roles created in your tenant. - *

      <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListRolesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of user roles created in your tenant. + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public ManagementApiHttpResponse> list(ListRolesRequestParameters request) { return list(request, null); @@ -63,7 +71,7 @@ public ManagementApiHttpResponse> list(ListRolesRequest /** * Retrieve detailed list of user roles created in your tenant. - *

      <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      + *

      Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

      */ public ManagementApiHttpResponse> list( ListRolesRequestParameters request, RequestOptions requestOptions) { @@ -79,6 +87,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "name_filter", request.getNameFilter().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -135,23 +148,27 @@ public ManagementApiHttpResponse> list( } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

      <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      + * Create a user role for Role-Based Access Control. + *

      Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      */ public ManagementApiHttpResponse create(CreateRoleRequestContent request) { return create(request, null); } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

      <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      + * Create a user role for Role-Based Access Control. + *

      Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

      */ public ManagementApiHttpResponse create( CreateRoleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -160,7 +177,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -208,23 +225,27 @@ public ManagementApiHttpResponse create( } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public ManagementApiHttpResponse get(String id) { return get(id, null); } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -271,23 +292,27 @@ public ManagementApiHttpResponse get(String id, RequestO } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -332,29 +357,40 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateRoleRequestContent.builder().build()); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateRoleRequestContent.builder().build(), requestOptions); + } + + /** + * Modify the details of a specific user role specified by ID. */ public ManagementApiHttpResponse update(String id, UpdateRoleRequestContent request) { return update(id, request, null); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public ManagementApiHttpResponse update( String id, UpdateRoleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -363,7 +399,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawRulesClient.java b/src/main/java/com/auth0/client/mgmt/RawRulesClient.java index c58b81dd4..94cf975de 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRulesClient.java @@ -47,21 +47,28 @@ public RawRulesClient(ClientOptions clientOptions) { } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public ManagementApiHttpResponse> list() { return list(ListRulesRequestParameters.builder().build()); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListRulesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public ManagementApiHttpResponse> list(ListRulesRequestParameters request) { return list(request, null); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public ManagementApiHttpResponse> list( ListRulesRequestParameters request, RequestOptions requestOptions) { @@ -85,6 +92,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -144,23 +156,27 @@ public ManagementApiHttpResponse> list( } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

      Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

      + * Create a new rule. + *

      Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

      */ public ManagementApiHttpResponse create(CreateRuleRequestContent request) { return create(request, null); } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

      Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

      + * Create a new rule. + *

      Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

      */ public ManagementApiHttpResponse create( CreateRuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("rules") - .build(); + .addPathSegments("rules"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -169,7 +185,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -217,21 +233,28 @@ public ManagementApiHttpResponse create( } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse get(String id) { return get(id, GetRuleRequestParameters.builder().build()); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetRuleRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse get(String id, GetRuleRequestParameters request) { return get(id, request, null); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public ManagementApiHttpResponse get( String id, GetRuleRequestParameters request, RequestOptions requestOptions) { @@ -247,6 +270,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -305,13 +333,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a rule. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -359,6 +391,13 @@ public ManagementApiHttpResponse update(String id) { return update(id, UpdateRuleRequestContent.builder().build()); } + /** + * Update an existing rule. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateRuleRequestContent.builder().build(), requestOptions); + } + /** * Update an existing rule. */ @@ -371,11 +410,15 @@ public ManagementApiHttpResponse update(String id, Up */ public ManagementApiHttpResponse update( String id, UpdateRuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -384,7 +427,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java b/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java index 46750c43e..3796bcc5f 100644 --- a/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawRulesConfigsClient.java @@ -50,12 +50,16 @@ public ManagementApiHttpResponse> list() { *
      */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("rules-configs") - .build(); + .addPathSegments("rules-configs"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -109,11 +113,15 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( String key, SetRulesConfigRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules-configs") - .addPathSegment(key) - .build(); + .addPathSegment(key); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -122,7 +130,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -174,13 +182,17 @@ public ManagementApiHttpResponse delete(String key) { * Delete a rules config variable identified by its key. */ public ManagementApiHttpResponse delete(String key, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("rules-configs") - .addPathSegment(key) - .build(); + .addPathSegment(key); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java index 3e0b71886..42f5cb522 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSelfServiceProfilesClient.java @@ -53,6 +53,13 @@ public ManagementApiHttpResponse> list() return list(ListSelfServiceProfilesRequestParameters.builder().build()); } + /** + * Retrieves self-service profiles. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListSelfServiceProfilesRequestParameters.builder().build(), requestOptions); + } + /** * Retrieves self-service profiles. */ @@ -74,6 +81,11 @@ public ManagementApiHttpResponse> list( httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -144,10 +156,14 @@ public ManagementApiHttpResponse create */ public ManagementApiHttpResponse create( CreateSelfServiceProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("self-service-profiles") - .build(); + .addPathSegments("self-service-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +172,7 @@ public ManagementApiHttpResponse create throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -219,13 +235,17 @@ public ManagementApiHttpResponse get(Strin */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -286,13 +306,17 @@ public ManagementApiHttpResponse delete(String id) { * Deletes a self-service profile by Id. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -343,6 +367,14 @@ public ManagementApiHttpResponse update return update(id, UpdateSelfServiceProfileRequestContent.builder().build()); } + /** + * Updates a self-service profile. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateSelfServiceProfileRequestContent.builder().build(), requestOptions); + } + /** * Updates a self-service profile. */ @@ -356,11 +388,15 @@ public ManagementApiHttpResponse update */ public ManagementApiHttpResponse update( String id, UpdateSelfServiceProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -369,7 +405,7 @@ public ManagementApiHttpResponse update throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java index 97bfdaf04..24d00366a 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSessionsClient.java @@ -46,13 +46,17 @@ public ManagementApiHttpResponse get(String id) { * Retrieve session information. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -106,13 +110,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a session by ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -160,6 +168,13 @@ public ManagementApiHttpResponse update(String id) return update(id, UpdateSessionRequestContent.builder().build()); } + /** + * Update session information. + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateSessionRequestContent.builder().build(), requestOptions); + } + /** * Update session information. */ @@ -173,11 +188,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateSessionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -186,7 +205,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -244,14 +263,18 @@ public ManagementApiHttpResponse revoke(String id) { * Revokes a session by ID and all associated refresh tokens. */ public ManagementApiHttpResponse revoke(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("sessions") .addPathSegment(id) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawStatsClient.java b/src/main/java/com/auth0/client/mgmt/RawStatsClient.java index e4e0df9bd..f218abd27 100644 --- a/src/main/java/com/auth0/client/mgmt/RawStatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawStatsClient.java @@ -45,12 +45,16 @@ public ManagementApiHttpResponse getActiveUsersCount() { * Retrieve the number of active users that logged in during the last 30 days. */ public ManagementApiHttpResponse getActiveUsersCount(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("stats/active-users") - .build(); + .addPathSegments("stats/active-users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -96,6 +100,13 @@ public ManagementApiHttpResponse> getDaily() { return getDaily(GetDailyStatsRequestParameters.builder().build()); } + /** + * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. + */ + public ManagementApiHttpResponse> getDaily(RequestOptions requestOptions) { + return getDaily(GetDailyStatsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. */ @@ -118,6 +129,11 @@ public ManagementApiHttpResponse> getDaily( if (!request.getTo().isAbsent()) { QueryStringMapper.addQueryParameter(httpUrl, "to", request.getTo().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java b/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java index a3a24d23a..790db11a8 100644 --- a/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawSupplementalSignalsClient.java @@ -45,12 +45,16 @@ public ManagementApiHttpResponse get() { * Get the supplemental signals configuration for a tenant. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("supplemental-signals") - .build(); + .addPathSegments("supplemental-signals"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -107,10 +111,14 @@ public ManagementApiHttpResponse patch( */ public ManagementApiHttpResponse patch( UpdateSupplementalSignalsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("supplemental-signals") - .build(); + .addPathSegments("supplemental-signals"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -119,7 +127,7 @@ public ManagementApiHttpResponse patch( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java b/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java index 6befa0530..c8455c635 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTicketsClient.java @@ -49,10 +49,14 @@ public ManagementApiHttpResponse verifyEmail( */ public ManagementApiHttpResponse verifyEmail( VerifyEmailTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tickets/email-verification") - .build(); + .addPathSegments("tickets/email-verification"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -61,7 +65,7 @@ public ManagementApiHttpResponse verifyEmail( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -116,6 +120,15 @@ public ManagementApiHttpResponse changePass return changePassword(ChangePasswordTicketRequestContent.builder().build()); } + /** + * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. + *

      Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

      + */ + public ManagementApiHttpResponse changePassword( + RequestOptions requestOptions) { + return changePassword(ChangePasswordTicketRequestContent.builder().build(), requestOptions); + } + /** * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. *

      Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

      @@ -131,10 +144,14 @@ public ManagementApiHttpResponse changePass */ public ManagementApiHttpResponse changePassword( ChangePasswordTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tickets/password-change") - .build(); + .addPathSegments("tickets/password-change"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -143,7 +160,7 @@ public ManagementApiHttpResponse changePass throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java index 0c5c0a709..8325f7b36 100644 --- a/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawTokenExchangeProfilesClient.java @@ -47,13 +47,13 @@ public RawTokenExchangeProfilesClient(ClientOptions clientOptions) { /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list() { return list(TokenExchangeProfilesListRequest.builder().build()); @@ -61,13 +61,28 @@ public ManagementApiHttpResponseBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      + */ + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(TokenExchangeProfilesListRequest.builder().build(), requestOptions); + } + + /** + * Retrieve a list of all Token Exchange Profiles available in your tenant. + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      + *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( TokenExchangeProfilesListRequest request) { @@ -76,13 +91,13 @@ public ManagementApiHttpResponseBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      *

      This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

      - *

      <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

      - *

      <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

      + *

        + *
      • from: Optional id from which to start selection.
      • + *
      • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
      • + *

      + *

      Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

      */ public ManagementApiHttpResponse> list( TokenExchangeProfilesListRequest request, RequestOptions requestOptions) { @@ -94,6 +109,11 @@ public ManagementApiHttpResponse { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -152,7 +172,7 @@ public ManagementApiHttpResponseBy using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse create( CreateTokenExchangeProfileRequestContent request) { @@ -161,14 +181,18 @@ public ManagementApiHttpResponse crea /** * Create a new Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse create( CreateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("token-exchange-profiles") - .build(); + .addPathSegments("token-exchange-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -177,7 +201,7 @@ public ManagementApiHttpResponse crea throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -227,7 +251,7 @@ public ManagementApiHttpResponse crea /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse get(String id) { return get(id, null); @@ -235,17 +259,21 @@ public ManagementApiHttpResponse get(Str /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -294,7 +322,7 @@ public ManagementApiHttpResponse get( /** * Delete a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); @@ -302,16 +330,20 @@ public ManagementApiHttpResponse delete(String id) { /** * Delete a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -351,7 +383,7 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateTokenExchangeProfileRequestContent.builder().build()); @@ -359,7 +391,15 @@ public ManagementApiHttpResponse update(String id) { /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateTokenExchangeProfileRequestContent.builder().build(), requestOptions); + } + + /** + * Update a Token Exchange Profile within your tenant. + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse update(String id, UpdateTokenExchangeProfileRequestContent request) { return update(id, request, null); @@ -367,15 +407,19 @@ public ManagementApiHttpResponse update(String id, UpdateTokenExchangeProf /** * Update a Token Exchange Profile within your tenant. - *

      By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

      + *

      By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

      */ public ManagementApiHttpResponse update( String id, UpdateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("token-exchange-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -384,7 +428,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java index 5af63d14d..e3990a5a7 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserAttributeProfilesClient.java @@ -55,6 +55,13 @@ public ManagementApiHttpResponse> list( return list(ListUserAttributeProfileRequestParameters.builder().build()); } + /** + * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListUserAttributeProfileRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. */ @@ -76,6 +83,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -146,10 +158,14 @@ public ManagementApiHttpResponse crea */ public ManagementApiHttpResponse create( CreateUserAttributeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("user-attribute-profiles") - .build(); + .addPathSegments("user-attribute-profiles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -158,7 +174,7 @@ public ManagementApiHttpResponse crea throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -218,12 +234,16 @@ public ManagementApiHttpResponse listTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("user-attribute-profiles/templates") - .build(); + .addPathSegments("user-attribute-profiles/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -276,13 +296,17 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse getTemplate( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -338,13 +362,17 @@ public ManagementApiHttpResponse get(Str */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -399,13 +427,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a single User Attribute Profile specified by ID. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -450,6 +482,14 @@ public ManagementApiHttpResponse upda return update(id, UpdateUserAttributeProfileRequestContent.builder().build()); } + /** + * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateUserAttributeProfileRequestContent.builder().build(), requestOptions); + } + /** * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. */ @@ -463,11 +503,15 @@ public ManagementApiHttpResponse upda */ public ManagementApiHttpResponse update( String id, UpdateUserAttributeProfileRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-attribute-profiles") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -476,7 +520,7 @@ public ManagementApiHttpResponse upda throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java index eb1e604e1..51ede97e6 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserBlocksClient.java @@ -37,7 +37,7 @@ public RawUserBlocksClient(ClientOptions clientOptions) { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public ManagementApiHttpResponse listByIdentifier( ListUserBlocksByIdentifierRequestParameters request) { @@ -45,7 +45,7 @@ public ManagementApiHttpResponse list } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public ManagementApiHttpResponse listByIdentifier( ListUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -60,6 +60,11 @@ public ManagementApiHttpResponse list request.getConsiderBruteForceEnablement().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -106,16 +111,16 @@ public ManagementApiHttpResponse list } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public ManagementApiHttpResponse deleteByIdentifier(DeleteUserBlocksByIdentifierRequestParameters request) { return deleteByIdentifier(request, null); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public ManagementApiHttpResponse deleteByIdentifier( DeleteUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -123,6 +128,11 @@ public ManagementApiHttpResponse deleteByIdentifier( .newBuilder() .addPathSegments("user-blocks"); QueryStringMapper.addQueryParameter(httpUrl, "identifier", request.getIdentifier(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -166,14 +176,21 @@ public ManagementApiHttpResponse deleteByIdentifier( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ManagementApiHttpResponse list(String id) { return list(id, ListUserBlocksRequestParameters.builder().build()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. + */ + public ManagementApiHttpResponse list(String id, RequestOptions requestOptions) { + return list(id, ListUserBlocksRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ManagementApiHttpResponse list( String id, ListUserBlocksRequestParameters request) { @@ -181,7 +198,7 @@ public ManagementApiHttpResponse list( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ManagementApiHttpResponse list( String id, ListUserBlocksRequestParameters request, RequestOptions requestOptions) { @@ -196,6 +213,11 @@ public ManagementApiHttpResponse list( request.getConsiderBruteForceEnablement().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -244,25 +266,29 @@ public ManagementApiHttpResponse list( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given ID. + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

      Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

      + * Remove all Brute-force Protection blocks for the user with the given ID. + *

      Note: This endpoint does not unblock users that were blocked by a tenant administrator.

      */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("user-blocks") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java index d42d2ad39..9388cba8d 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUserGrantsClient.java @@ -37,21 +37,28 @@ public RawUserGrantsClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public ManagementApiHttpResponse> list() { return list(ListUserGrantsRequestParameters.builder().build()); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListUserGrantsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve the grants associated with your account. */ public ManagementApiHttpResponse> list(ListUserGrantsRequestParameters request) { return list(request, null); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public ManagementApiHttpResponse> list( ListUserGrantsRequestParameters request, RequestOptions requestOptions) { @@ -75,6 +82,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "audience", request.getAudience().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -143,6 +155,11 @@ public ManagementApiHttpResponse deleteByUserId( .newBuilder() .addPathSegments("grants"); QueryStringMapper.addQueryParameter(httpUrl, "user_id", request.getUserId(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) @@ -193,13 +210,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a grant associated with your account. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("grants") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/RawUsersClient.java index 02f76f6c1..2713fabec 100644 --- a/src/main/java/com/auth0/client/mgmt/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/RawUsersClient.java @@ -60,10 +60,10 @@ public RawUsersClient(ClientOptions clientOptions) { *
    • Specify the number of users to retrieve per page and the page index
    • *
    *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public ManagementApiHttpResponse> list() { return list(ListUsersRequestParameters.builder().build()); @@ -78,10 +78,28 @@ public ManagementApiHttpResponse> list() *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListUsersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of users. It is possible to: + *
      + *
    • Specify a search criteria for users
    • + *
    • Sort the users to be returned
    • + *
    • Select the fields to be returned
    • + *
    • Specify the number of users to retrieve per page and the page index
    • + *
    + *

    <!-- only v3 is available -->

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public ManagementApiHttpResponse> list(ListUsersRequestParameters request) { return list(request, null); @@ -96,10 +114,10 @@ public ManagementApiHttpResponse> list(Li *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public ManagementApiHttpResponse> list( ListUsersRequestParameters request, RequestOptions requestOptions) { @@ -138,6 +156,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "primary_order", request.getPrimaryOrder().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -197,23 +220,27 @@ public ManagementApiHttpResponse> list( } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public ManagementApiHttpResponse create(CreateUserRequestContent request) { return create(request, null); } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public ManagementApiHttpResponse create( CreateUserRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("users") - .build(); + .addPathSegments("users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -222,7 +249,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -298,6 +325,11 @@ public ManagementApiHttpResponse> listUsersByEmail( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "email", request.getEmail(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -344,21 +376,28 @@ public ManagementApiHttpResponse> listUsersByEmail( } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public ManagementApiHttpResponse get(String id) { return get(id, GetUserRequestParameters.builder().build()); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. + */ + public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { + return get(id, GetUserRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public ManagementApiHttpResponse get(String id, GetUserRequestParameters request) { return get(id, request, null); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public ManagementApiHttpResponse get( String id, GetUserRequestParameters request, RequestOptions requestOptions) { @@ -374,6 +413,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -422,23 +466,27 @@ public ManagementApiHttpResponse get( } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -482,57 +530,57 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -540,7 +588,7 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateUserRequestContent.builder().build()); @@ -549,57 +597,57 @@ public ManagementApiHttpResponse update(String id) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -607,7 +655,74 @@ public ManagementApiHttpResponse update(String id) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    + */ + public ManagementApiHttpResponse update(String id, RequestOptions requestOptions) { + return update(id, UpdateUserRequestContent.builder().build(), requestOptions); + } + + /** + * Update a user. + *

    These are the attributes that can be updated at the root level:

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    + *

    Some considerations:

    + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    + * To mark the email address of a user as verified, the body to send should be: + *
    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
    +     * "user_metadata": {
    +     * "profileCode": 1479,
    +     * "addresses": { "work_address": "100 Industrial Way" }
    +     * }
    +     * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
    +     *   "user_metadata": {
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
    +     *   "user_metadata": {
    +     *     "profileCode": 1479,
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    */ public ManagementApiHttpResponse update(String id, UpdateUserRequestContent request) { return update(id, request, null); @@ -616,57 +731,57 @@ public ManagementApiHttpResponse update(String id, Up /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -674,15 +789,19 @@ public ManagementApiHttpResponse update(String id, Up
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public ManagementApiHttpResponse update( String id, UpdateUserRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -691,7 +810,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -739,25 +858,29 @@ public ManagementApiHttpResponse update( } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public ManagementApiHttpResponse regenerateRecoveryCode(String id) { return regenerateRecoveryCode(id, null); } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public ManagementApiHttpResponse regenerateRecoveryCode( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("recovery-code-regeneration") - .build(); + .addPathSegments("recovery-code-regeneration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -808,6 +931,13 @@ public ManagementApiHttpResponse revokeAccess(String id) { return revokeAccess(id, RevokeUserAccessRequestContent.builder().build()); } + /** + * Revokes selected resources related to a user (sessions, refresh tokens, ...). + */ + public ManagementApiHttpResponse revokeAccess(String id, RequestOptions requestOptions) { + return revokeAccess(id, RevokeUserAccessRequestContent.builder().build(), requestOptions); + } + /** * Revokes selected resources related to a user (sessions, refresh tokens, ...). */ @@ -820,12 +950,16 @@ public ManagementApiHttpResponse revokeAccess(String id, RevokeUserAccessR */ public ManagementApiHttpResponse revokeAccess( String id, RevokeUserAccessRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("revoke-access") - .build(); + .addPathSegments("revoke-access"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -834,7 +968,7 @@ public ManagementApiHttpResponse revokeAccess( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java index e8a17ba7c..6d0a5aa1a 100644 --- a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java @@ -61,6 +61,13 @@ public UpdateRefreshTokenResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update a refresh token by its ID. + */ + public UpdateRefreshTokenResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update a refresh token by its ID. */ diff --git a/src/main/java/com/auth0/client/mgmt/ResourceServersClient.java b/src/main/java/com/auth0/client/mgmt/ResourceServersClient.java index 7aad20870..34716dcfd 100644 --- a/src/main/java/com/auth0/client/mgmt/ResourceServersClient.java +++ b/src/main/java/com/auth0/client/mgmt/ResourceServersClient.java @@ -39,6 +39,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve details of all APIs associated with your tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve details of all APIs associated with your tenant. */ @@ -55,14 +62,14 @@ public SyncPagingIterable list( } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public CreateResourceServerResponseContent create(CreateResourceServerRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read <a href="https://www.auth0.com/docs/get-started/apis"> APIs</a>. + * Create a new API associated with your tenant. Note that all new APIs must be registered with Auth0. For more information, read APIs. */ public CreateResourceServerResponseContent create( CreateResourceServerRequestContent request, RequestOptions requestOptions) { @@ -70,21 +77,28 @@ public CreateResourceServerResponseContent create( } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public GetResourceServerResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. + */ + public GetResourceServerResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve API details with the given ID. */ public GetResourceServerResponseContent get(String id, GetResourceServerRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve <a href="https://auth0.com/docs/apis">API</a> details with the given ID. + * Retrieve API details with the given ID. */ public GetResourceServerResponseContent get( String id, GetResourceServerRequestParameters request, RequestOptions requestOptions) { @@ -92,35 +106,42 @@ public GetResourceServerResponseContent get( } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Delete an existing API by ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Delete an existing API by ID. For more information, read API Settings. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public UpdateResourceServerResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. + */ + public UpdateResourceServerResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public UpdateResourceServerResponseContent update(String id, UpdateResourceServerRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Change an existing API setting by resource server ID. For more information, read <a href="https://www.auth0.com/docs/get-started/apis/api-settings">API Settings</a>. + * Change an existing API setting by resource server ID. For more information, read API Settings. */ public UpdateResourceServerResponseContent update( String id, UpdateResourceServerRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RolesClient.java b/src/main/java/com/auth0/client/mgmt/RolesClient.java index 09f7a1a83..5c3cb3d81 100644 --- a/src/main/java/com/auth0/client/mgmt/RolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RolesClient.java @@ -43,7 +43,7 @@ public RawRolesClient withRawResponse() { /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -51,7 +51,15 @@ public SyncPagingIterable list() { /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve detailed list of user roles created in your tenant. + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public SyncPagingIterable list(ListRolesRequestParameters request) { return this.rawClient.list(request).body(); @@ -59,72 +67,79 @@ public SyncPagingIterable list(ListRolesRequestParameters request) { /** * Retrieve detailed list of user roles created in your tenant. - *

    <b>Note</b>: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    + *

    Note: The returned list does not include standard roles available for tenant members, such as Admin or Support Access.

    */ public SyncPagingIterable list(ListRolesRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    + * Create a user role for Role-Based Access Control. + *

    Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    */ public CreateRoleResponseContent create(CreateRoleRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a user role for <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    + * Create a user role for Role-Based Access Control. + *

    Note: New roles are not associated with any permissions by default. To assign existing permissions to your role, review Associate Permissions with a Role. To create new permissions, review Add API Permissions.

    */ public CreateRoleResponseContent create(CreateRoleRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public GetRoleResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve details about a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Retrieve details about a specific user role specified by ID. */ public GetRoleResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Delete a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. + * Delete a specific user role from your tenant. Once deleted, it is removed from any user who was previously assigned that role. This action cannot be undone. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public UpdateRoleResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. + */ + public UpdateRoleResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Modify the details of a specific user role specified by ID. */ public UpdateRoleResponseContent update(String id, UpdateRoleRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Modify the details of a specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">user role</a> specified by ID. + * Modify the details of a specific user role specified by ID. */ public UpdateRoleResponseContent update( String id, UpdateRoleRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/RulesClient.java b/src/main/java/com/auth0/client/mgmt/RulesClient.java index 9e9c9af7f..b1031974c 100644 --- a/src/main/java/com/auth0/client/mgmt/RulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/RulesClient.java @@ -33,58 +33,72 @@ public RawRulesClient withRawResponse() { } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public SyncPagingIterable list(ListRulesRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve a filtered list of <a href="https://auth0.com/docs/rules">rules</a>. Accepts a list of fields to include or exclude. + * Retrieve a filtered list of rules. Accepts a list of fields to include or exclude. */ public SyncPagingIterable list(ListRulesRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

    Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

    + * Create a new rule. + *

    Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

    */ public CreateRuleResponseContent create(CreateRuleRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a <a href="https://auth0.com/docs/rules#create-a-new-rule-using-the-management-api">new rule</a>. - *

    Note: Changing a rule's stage of execution from the default <code>login_success</code> can change the rule's function signature to have user omitted.

    + * Create a new rule. + *

    Note: Changing a rule's stage of execution from the default login_success can change the rule's function signature to have user omitted.

    */ public CreateRuleResponseContent create(CreateRuleRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public GetRuleResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. + */ + public GetRuleResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public GetRuleResponseContent get(String id, GetRuleRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve <a href="https://auth0.com/docs/rules">rule</a> details. Accepts a list of fields to include or exclude in the result. + * Retrieve rule details. Accepts a list of fields to include or exclude in the result. */ public GetRuleResponseContent get(String id, GetRuleRequestParameters request, RequestOptions requestOptions) { return this.rawClient.get(id, request, requestOptions).body(); @@ -111,6 +125,13 @@ public UpdateRuleResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update an existing rule. + */ + public UpdateRuleResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update an existing rule. */ diff --git a/src/main/java/com/auth0/client/mgmt/SelfServiceProfilesClient.java b/src/main/java/com/auth0/client/mgmt/SelfServiceProfilesClient.java index bf2791125..4c28c1bff 100644 --- a/src/main/java/com/auth0/client/mgmt/SelfServiceProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/SelfServiceProfilesClient.java @@ -48,6 +48,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieves self-service profiles. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieves self-service profiles. */ @@ -113,6 +120,13 @@ public UpdateSelfServiceProfileResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Updates a self-service profile. + */ + public UpdateSelfServiceProfileResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Updates a self-service profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/SessionsClient.java b/src/main/java/com/auth0/client/mgmt/SessionsClient.java index 873e5995e..aa5b14422 100644 --- a/src/main/java/com/auth0/client/mgmt/SessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/SessionsClient.java @@ -61,6 +61,13 @@ public UpdateSessionResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update session information. + */ + public UpdateSessionResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update session information. */ diff --git a/src/main/java/com/auth0/client/mgmt/StatsClient.java b/src/main/java/com/auth0/client/mgmt/StatsClient.java index 7b32b9d3b..83666d48b 100644 --- a/src/main/java/com/auth0/client/mgmt/StatsClient.java +++ b/src/main/java/com/auth0/client/mgmt/StatsClient.java @@ -47,6 +47,13 @@ public List getDaily() { return this.rawClient.getDaily().body(); } + /** + * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. + */ + public List getDaily(RequestOptions requestOptions) { + return this.rawClient.getDaily(requestOptions).body(); + } + /** * Retrieve the number of logins, signups and breached-password detections (subscription required) that occurred each day within a specified date range. */ diff --git a/src/main/java/com/auth0/client/mgmt/TicketsClient.java b/src/main/java/com/auth0/client/mgmt/TicketsClient.java index 66dadb125..68bc0e5ed 100644 --- a/src/main/java/com/auth0/client/mgmt/TicketsClient.java +++ b/src/main/java/com/auth0/client/mgmt/TicketsClient.java @@ -50,6 +50,14 @@ public ChangePasswordTicketResponseContent changePassword() { return this.rawClient.changePassword().body(); } + /** + * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. + *

    Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

    + */ + public ChangePasswordTicketResponseContent changePassword(RequestOptions requestOptions) { + return this.rawClient.changePassword(requestOptions).body(); + } + /** * Create a password change ticket for a given user. A password change ticket is a generated URL that the user can consume to start a reset password flow. *

    Note: This endpoint does not verify the given user’s identity. If you call this endpoint within your application, you must design your application to verify the user’s identity.

    diff --git a/src/main/java/com/auth0/client/mgmt/TokenExchangeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/TokenExchangeProfilesClient.java index 6b8acbe71..8f353d5f4 100644 --- a/src/main/java/com/auth0/client/mgmt/TokenExchangeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/TokenExchangeProfilesClient.java @@ -32,13 +32,13 @@ public RawTokenExchangeProfilesClient withRawResponse() { /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -46,13 +46,27 @@ public SyncPagingIterable list() { /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a list of all Token Exchange Profiles available in your tenant. + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    + *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list(TokenExchangeProfilesListRequest request) { return this.rawClient.list(request).body(); @@ -60,13 +74,13 @@ public SyncPagingIterable list(TokenExchang /** * Retrieve a list of all Token Exchange Profiles available in your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    *

    This endpoint supports Checkpoint pagination. To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list( TokenExchangeProfilesListRequest request, RequestOptions requestOptions) { @@ -75,7 +89,7 @@ public SyncPagingIterable list( /** * Create a new Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CreateTokenExchangeProfileResponseContent create(CreateTokenExchangeProfileRequestContent request) { return this.rawClient.create(request).body(); @@ -83,7 +97,7 @@ public CreateTokenExchangeProfileResponseContent create(CreateTokenExchangeProfi /** * Create a new Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public CreateTokenExchangeProfileResponseContent create( CreateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { @@ -92,7 +106,7 @@ public CreateTokenExchangeProfileResponseContent create( /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public GetTokenExchangeProfileResponseContent get(String id) { return this.rawClient.get(id).body(); @@ -100,7 +114,7 @@ public GetTokenExchangeProfileResponseContent get(String id) { /** * Retrieve details about a single Token Exchange Profile specified by ID. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta’s Master Subscription Agreement</a>. It is your responsibility to securely validate the user’s subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta’s Master Subscription Agreement. It is your responsibility to securely validate the user’s subject_token. See User Guide for more details.

    */ public GetTokenExchangeProfileResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -108,7 +122,7 @@ public GetTokenExchangeProfileResponseContent get(String id, RequestOptions requ /** * Delete a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void delete(String id) { this.rawClient.delete(id).body(); @@ -116,7 +130,7 @@ public void delete(String id) { /** * Delete a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); @@ -124,7 +138,7 @@ public void delete(String id, RequestOptions requestOptions) { /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void update(String id) { this.rawClient.update(id).body(); @@ -132,7 +146,15 @@ public void update(String id) { /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    + */ + public void update(String id, RequestOptions requestOptions) { + this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a Token Exchange Profile within your tenant. + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void update(String id, UpdateTokenExchangeProfileRequestContent request) { this.rawClient.update(id, request).body(); @@ -140,7 +162,7 @@ public void update(String id, UpdateTokenExchangeProfileRequestContent request) /** * Update a Token Exchange Profile within your tenant. - *

    By using this feature, you agree to the applicable Free Trial terms in <a href="https://www.okta.com/legal/">Okta's Master Subscription Agreement</a>. It is your responsibility to securely validate the user's subject_token. See <a href="https://auth0.com/docs/authenticate/custom-token-exchange">User Guide</a> for more details.

    + *

    By using this feature, you agree to the applicable Free Trial terms in Okta's Master Subscription Agreement. It is your responsibility to securely validate the user's subject_token. See User Guide for more details.

    */ public void update(String id, UpdateTokenExchangeProfileRequestContent request, RequestOptions requestOptions) { this.rawClient.update(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java b/src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java index 854cbbd44..d47cf62d5 100644 --- a/src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java +++ b/src/main/java/com/auth0/client/mgmt/UserAttributeProfilesClient.java @@ -40,6 +40,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve a list of User Attribute Profiles. This endpoint supports Checkpoint pagination. */ @@ -133,6 +140,13 @@ public UpdateUserAttributeProfileResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. + */ + public UpdateUserAttributeProfileResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update the details of a specific User attribute profile, such as name, user_id and user_attributes. */ diff --git a/src/main/java/com/auth0/client/mgmt/UserBlocksClient.java b/src/main/java/com/auth0/client/mgmt/UserBlocksClient.java index 4c3e3421b..b6ca4b175 100644 --- a/src/main/java/com/auth0/client/mgmt/UserBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/UserBlocksClient.java @@ -29,7 +29,7 @@ public RawUserBlocksClient withRawResponse() { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public ListUserBlocksByIdentifierResponseContent listByIdentifier( ListUserBlocksByIdentifierRequestParameters request) { @@ -37,7 +37,7 @@ public ListUserBlocksByIdentifierResponseContent listByIdentifier( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for a user with the given identifier (username, phone number, or email). + * Retrieve details of all Brute-force Protection blocks for a user with the given identifier (username, phone number, or email). */ public ListUserBlocksByIdentifierResponseContent listByIdentifier( ListUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -45,16 +45,16 @@ public ListUserBlocksByIdentifierResponseContent listByIdentifier( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public void deleteByIdentifier(DeleteUserBlocksByIdentifierRequestParameters request) { this.rawClient.deleteByIdentifier(request).body(); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given identifier (username, phone number, or email). - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given identifier (username, phone number, or email). + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public void deleteByIdentifier( DeleteUserBlocksByIdentifierRequestParameters request, RequestOptions requestOptions) { @@ -62,21 +62,28 @@ public void deleteByIdentifier( } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ListUserBlocksResponseContent list(String id) { return this.rawClient.list(id).body(); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. + */ + public ListUserBlocksResponseContent list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ListUserBlocksResponseContent list(String id, ListUserBlocksRequestParameters request) { return this.rawClient.list(id, request).body(); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. + * Retrieve details of all Brute-force Protection blocks for the user with the given ID. */ public ListUserBlocksResponseContent list( String id, ListUserBlocksRequestParameters request, RequestOptions requestOptions) { @@ -84,16 +91,16 @@ public ListUserBlocksResponseContent list( } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given ID. + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Remove all <a href="https://auth0.com/docs/secure/attack-protection/brute-force-protection">Brute-force Protection</a> blocks for the user with the given ID. - *

    Note: This endpoint does not unblock users that were <a href="https://auth0.com/docs/user-profile#block-and-unblock-a-user">blocked by a tenant administrator</a>.

    + * Remove all Brute-force Protection blocks for the user with the given ID. + *

    Note: This endpoint does not unblock users that were blocked by a tenant administrator.

    */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/UserGrantsClient.java b/src/main/java/com/auth0/client/mgmt/UserGrantsClient.java index ede7274cd..6cd0ec7da 100644 --- a/src/main/java/com/auth0/client/mgmt/UserGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/UserGrantsClient.java @@ -28,21 +28,28 @@ public RawUserGrantsClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public SyncPagingIterable list() { return this.rawClient.list().body(); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve the grants associated with your account. */ public SyncPagingIterable list(ListUserGrantsRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve the <a href="https://auth0.com/docs/api-auth/which-oauth-flow-to-use">grants</a> associated with your account. + * Retrieve the grants associated with your account. */ public SyncPagingIterable list(ListUserGrantsRequestParameters request, RequestOptions requestOptions) { return this.rawClient.list(request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/UsersClient.java b/src/main/java/com/auth0/client/mgmt/UsersClient.java index cac371619..39c83c130 100644 --- a/src/main/java/com/auth0/client/mgmt/UsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/UsersClient.java @@ -108,10 +108,10 @@ public RawUsersClient withRawResponse() { *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public SyncPagingIterable list() { return this.rawClient.list().body(); @@ -126,10 +126,28 @@ public SyncPagingIterable list() { *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve details of users. It is possible to: + *
      + *
    • Specify a search criteria for users
    • + *
    • Sort the users to be returned
    • + *
    • Select the fields to be returned
    • + *
    • Specify the number of users to retrieve per page and the page index
    • + *
    + *

    <!-- only v3 is available -->

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public SyncPagingIterable list(ListUsersRequestParameters request) { return this.rawClient.list(request).body(); @@ -144,10 +162,10 @@ public SyncPagingIterable list(ListUsersRequestParameters re *
  • Specify the number of users to retrieve per page and the page index
  • * *

    <!-- only v3 is available -->

    - *

    The <code>q</code> query parameter can be used to get users that match the specified criteria <a href="https://auth0.com/docs/users/search/v3/query-syntax">using query string syntax.</a>

    - *

    <a href="https://auth0.com/docs/users/search/v3">Learn more about searching for users.</a>

    - *

    Read about <a href="https://auth0.com/docs/users/search/best-practices">best practices</a> when working with the API endpoints for retrieving users.

    - *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the <a href="https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports">export job</a>, or the <a href="https://auth0.com/docs/extensions/user-import-export">User Import / Export</a> extension.

    + *

    The q query parameter can be used to get users that match the specified criteria using query string syntax.

    + *

    Learn more about searching for users.

    + *

    Read about best practices when working with the API endpoints for retrieving users.

    + *

    Auth0 limits the number of users you can return. If you exceed this threshold, please redefine your search, use the export job, or the User Import / Export extension.

    */ public SyncPagingIterable list( ListUsersRequestParameters request, RequestOptions requestOptions) { @@ -155,16 +173,16 @@ public SyncPagingIterable list( } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CreateUserResponseContent create(CreateUserRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a new user for a given <a href="https://auth0.com/docs/connections/database">database</a> or <a href="https://auth0.com/docs/connections/passwordless">passwordless</a> connection. - *

    Note: <code>connection</code> is required but other parameters such as <code>email</code> and <code>password</code> are dependent upon the type of connection.

    + * Create a new user for a given database or passwordless connection. + *

    Note: connection is required but other parameters such as email and password are dependent upon the type of connection.

    */ public CreateUserResponseContent create(CreateUserRequestContent request, RequestOptions requestOptions) { return this.rawClient.create(request, requestOptions).body(); @@ -190,35 +208,42 @@ public List listUsersByEmail( } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public GetUserResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. + */ + public GetUserResponseContent get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public GetUserResponseContent get(String id, GetUserRequestParameters request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see <a href="https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint">Retrieve Users with the Get Users Endpoint</a>. + * Retrieve user details. A list of fields to include or exclude may also be specified. For more information, see Retrieve Users with the Get Users Endpoint. */ public GetUserResponseContent get(String id, GetUserRequestParameters request, RequestOptions requestOptions) { return this.rawClient.get(id, request, requestOptions).body(); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see <a href="https://auth0.com/docs/manage-users/user-accounts/delete-users">Delete Users</a>. + * Delete a user by user ID. This action cannot be undone. For Auth0 Dashboard instructions, see Delete Users. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); @@ -227,57 +252,57 @@ public void delete(String id, RequestOptions requestOptions) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -285,7 +310,7 @@ public void delete(String id, RequestOptions requestOptions) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public UpdateUserResponseContent update(String id) { return this.rawClient.update(id).body(); @@ -294,57 +319,124 @@ public UpdateUserResponseContent update(String id) { /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    + *

    Some considerations:

    + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    + * To mark the email address of a user as verified, the body to send should be: + *
    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
    +     * "user_metadata": {
    +     * "profileCode": 1479,
    +     * "addresses": { "work_address": "100 Industrial Way" }
    +     * }
    +     * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
    +     *   "user_metadata": {
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
    +     *   "user_metadata": {
    +     *     "profileCode": 1479,
    +     *     "addresses": {
    +     *       "work_address": "100 Industrial Way",
    +     *       "home_address": "742 Evergreen Terrace"
    +     *     }
    +     *   }
    +     * }

    + */ + public UpdateUserResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a user. + *

    These are the attributes that can be updated at the root level:

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -352,7 +444,7 @@ public UpdateUserResponseContent update(String id) {
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public UpdateUserResponseContent update(String id, UpdateUserRequestContent request) { return this.rawClient.update(id, request).body(); @@ -361,57 +453,57 @@ public UpdateUserResponseContent update(String id, UpdateUserRequestContent requ /** * Update a user. *

    These are the attributes that can be updated at the root level:

    - *

    <ul> - * <li>app_metadata</li> - * <li>blocked</li> - * <li>email</li> - * <li>email_verified</li> - * <li>family_name</li> - * <li>given_name</li> - * <li>name</li> - * <li>nickname</li> - * <li>password</li> - * <li>phone_number</li> - * <li>phone_verified</li> - * <li>picture</li> - * <li>username</li> - * <li>user_metadata</li> - * <li>verify_email</li> - * </ul>

    + *

      + *
    • app_metadata
    • + *
    • blocked
    • + *
    • email
    • + *
    • email_verified
    • + *
    • family_name
    • + *
    • given_name
    • + *
    • name
    • + *
    • nickname
    • + *
    • password
    • + *
    • phone_number
    • + *
    • phone_verified
    • + *
    • picture
    • + *
    • username
    • + *
    • user_metadata
    • + *
    • verify_email
    • + *

    *

    Some considerations:

    - *

    <ul> - * <li>The properties of the new object will replace the old ones.</li> - * <li>The metadata fields are an exception to this rule (<code>user_metadata</code> and <code>app_metadata</code>). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.</li> - * <li>If you are updating <code>email</code>, <code>email_verified</code>, <code>phone_number</code>, <code>phone_verified</code>, <code>username</code> or <code>password</code> of a secondary identity, you need to specify the <code>connection</code> property too.</li> - * <li>If you are updating <code>email</code> or <code>phone_number</code> you can specify, optionally, the <code>client_id</code> property.</li> - * <li>Updating <code>email_verified</code> is not supported for enterprise and passwordless sms connections.</li> - * <li>Updating the <code>blocked</code> to <code>false</code> does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.</li> - * <li>Supported attributes can be unset by supplying <code>null</code> as the value.</li> - * </ul>

    - *

    <h5>Updating a field (non-metadata property)</h5> + *

      + *
    • The properties of the new object will replace the old ones.
    • + *
    • The metadata fields are an exception to this rule (user_metadata and app_metadata). These properties are merged instead of being replaced but be careful, the merge only occurs on the first level.
    • + *
    • If you are updating email, email_verified, phone_number, phone_verified, username or password of a secondary identity, you need to specify the connection property too.
    • + *
    • If you are updating email or phone_number you can specify, optionally, the client_id property.
    • + *
    • Updating email_verified is not supported for enterprise and passwordless sms connections.
    • + *
    • Updating the blocked to false does not affect the user's blocked state from an excessive amount of incorrectly provided credentials. Use the "Unblock a user" endpoint from the "User Blocks" API to change the user's state.
    • + *
    • Supported attributes can be unset by supplying null as the value.
    • + *

    + *

    Updating a field (non-metadata property)
    * To mark the email address of a user as verified, the body to send should be: - * <pre><code>{ "email_verified": true }</code></pre>

    - *

    <h5>Updating a user metadata root property</h5>Let's assume that our test user has the following <code>user_metadata</code>: - * <pre><code>{ "user_metadata" : { "profileCode": 1479 } }</code></pre>

    - *

    To add the field <code>addresses</code> the body to send should be:

    - *

    <pre><code>{ "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:<pre><code>{ + *

    { "email_verified": true }

    + *

    Updating a user metadata root property
    Let's assume that our test user has the following user_metadata: + *
    { "user_metadata" : { "profileCode": 1479 } }

    + *

    To add the field addresses the body to send should be:

    + *

    { "user_metadata" : { "addresses": {"work_address": "100 Industrial Way"} }}

    + *

    The modified object ends up with the following user_metadata property:

    {
          * "user_metadata": {
          * "profileCode": 1479,
          * "addresses": { "work_address": "100 Industrial Way" }
          * }
    -     * }</code></pre>

    - *

    <h5>Updating an inner user metadata property</h5>If there's existing user metadata to which we want to add <code>"home_address": "742 Evergreen Terrace"</code> (using the <code>addresses</code> property) we should send the whole <code>addresses</code> object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: - * <pre><code>{ + * }

    + *

    Updating an inner user metadata property
    If there's existing user metadata to which we want to add "home_address": "742 Evergreen Terrace" (using the addresses property) we should send the whole addresses object. Since this is a first-level object, the object will be merged in, but its own properties will not be. The body to send should be: + *
    {
          *   "user_metadata": {
          *     "addresses": {
          *       "work_address": "100 Industrial Way",
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    - *

    The modified object ends up with the following <code>user_metadata</code> property:

    - *

    <pre><code>{ + * }

    + *

    The modified object ends up with the following user_metadata property:

    + *

    {
          *   "user_metadata": {
          *     "profileCode": 1479,
          *     "addresses": {
    @@ -419,7 +511,7 @@ public UpdateUserResponseContent update(String id, UpdateUserRequestContent requ
          *       "home_address": "742 Evergreen Terrace"
          *     }
          *   }
    -     * }</code></pre>

    + * }

    */ public UpdateUserResponseContent update( String id, UpdateUserRequestContent request, RequestOptions requestOptions) { @@ -427,14 +519,14 @@ public UpdateUserResponseContent update( } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public RegenerateUsersRecoveryCodeResponseContent regenerateRecoveryCode(String id) { return this.rawClient.regenerateRecoveryCode(id).body(); } /** - * Remove an existing multi-factor authentication (MFA) <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">recovery code</a> and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. + * Remove an existing multi-factor authentication (MFA) recovery code and generate a new one. If a user cannot access the original device or account used for MFA enrollment, they can use a recovery code to authenticate. */ public RegenerateUsersRecoveryCodeResponseContent regenerateRecoveryCode(String id, RequestOptions requestOptions) { return this.rawClient.regenerateRecoveryCode(id, requestOptions).body(); @@ -447,6 +539,13 @@ public void revokeAccess(String id) { this.rawClient.revokeAccess(id).body(); } + /** + * Revokes selected resources related to a user (sessions, refresh tokens, ...). + */ + public void revokeAccess(String id, RequestOptions requestOptions) { + this.rawClient.revokeAccess(id, requestOptions).body(); + } + /** * Revokes selected resources related to a user (sessions, refresh tokens, ...). */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncModulesClient.java index 3352e6f8d..c266fa861 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncModulesClient.java @@ -49,6 +49,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve a paginated list of all Actions Modules with optional filtering and totals. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve a paginated list of all Actions Modules with optional filtering and totals. */ @@ -114,6 +121,13 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update properties of an existing Actions Module, such as code, dependencies, or secrets. + */ + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update properties of an existing Actions Module, such as code, dependencies, or secrets. */ @@ -137,6 +151,14 @@ public CompletableFuture> listActions(Str return this.rawClient.listActions(id).thenApply(response -> response.body()); } + /** + * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. + */ + public CompletableFuture> listActions( + String id, RequestOptions requestOptions) { + return this.rawClient.listActions(id, requestOptions).thenApply(response -> response.body()); + } + /** * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java index 509f6c7e2..a04c39b7a 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawExecutionsClient.java @@ -47,13 +47,17 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/executions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java index f0c070a23..1ef05d174 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawModulesClient.java @@ -63,6 +63,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(GetActionModulesRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a paginated list of all Actions Modules with optional filtering and totals. */ @@ -82,6 +90,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -180,10 +193,14 @@ public CompletableFuture> create( CreateActionModuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/modules") - .build(); + .addPathSegments("actions/modules"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -192,7 +209,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -363,13 +384,17 @@ public CompletableFuture> delete(String id) { * Permanently delete an Actions Module. This will fail if the module is still in use by any actions. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -448,6 +473,14 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateActionModuleRequestContent.builder().build(), requestOptions); + } + /** * Update properties of an existing Actions Module, such as code, dependencies, or secrets. */ @@ -461,11 +494,15 @@ public CompletableFuture> update( String id, UpdateActionModuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -474,7 +511,7 @@ public CompletableFuture>> listActions( + String id, RequestOptions requestOptions) { + return listActions(id, GetActionModuleActionsRequestParameters.builder().build(), requestOptions); + } + /** * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. */ @@ -579,6 +624,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -683,12 +733,16 @@ public CompletableFuture> rollback( String id, RollbackActionModuleRequestParameters request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) - .addPathSegments("rollback") - .build(); + .addPathSegments("rollback"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -697,7 +751,7 @@ public CompletableFuture> list( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/triggers") - .build(); + .addPathSegments("actions/triggers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java index 40becad9c..091fd31a7 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/AsyncRawVersionsClient.java @@ -55,6 +55,14 @@ public CompletableFuture>> list( + String actionId, RequestOptions requestOptions) { + return list(actionId, ListActionVersionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. */ @@ -76,6 +84,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,15 +187,19 @@ public CompletableFuture> get( String actionId, String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(actionId) .addPathSegments("versions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -261,6 +278,14 @@ public CompletableFutureabsent()); } + /** + * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. + */ + public CompletableFuture> deploy( + String actionId, String id, RequestOptions requestOptions) { + return deploy(actionId, id, OptionalNullable.absent(), requestOptions); + } + /** * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. */ @@ -277,14 +302,18 @@ public CompletableFuture request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(actionId) .addPathSegments("versions") .addPathSegment(id) - .addPathSegments("deploy") - .build(); + .addPathSegments("deploy"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -296,7 +325,7 @@ public CompletableFuture> list(String actionId return this.rawClient.list(actionId).thenApply(response -> response.body()); } + /** + * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. + */ + public CompletableFuture> list(String actionId, RequestOptions requestOptions) { + return this.rawClient.list(actionId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. */ @@ -76,6 +83,14 @@ public CompletableFuture deploy(String actio return this.rawClient.deploy(actionId, id).thenApply(response -> response.body()); } + /** + * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. + */ + public CompletableFuture deploy( + String actionId, String id, RequestOptions requestOptions) { + return this.rawClient.deploy(actionId, id, requestOptions).thenApply(response -> response.body()); + } + /** * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/ModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/ModulesClient.java index ab5b9c43f..a336ed4cc 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/ModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/ModulesClient.java @@ -48,6 +48,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve a paginated list of all Actions Modules with optional filtering and totals. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve a paginated list of all Actions Modules with optional filtering and totals. */ @@ -113,6 +120,13 @@ public UpdateActionModuleResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update properties of an existing Actions Module, such as code, dependencies, or secrets. + */ + public UpdateActionModuleResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update properties of an existing Actions Module, such as code, dependencies, or secrets. */ @@ -135,6 +149,13 @@ public SyncPagingIterable listActions(String id) { return this.rawClient.listActions(id).body(); } + /** + * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. + */ + public SyncPagingIterable listActions(String id, RequestOptions requestOptions) { + return this.rawClient.listActions(id, requestOptions).body(); + } + /** * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java index 08eef45f4..33f89ebd1 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawExecutionsClient.java @@ -42,13 +42,17 @@ public ManagementApiHttpResponse get(String i * Retrieve information about a specific execution of a trigger. Relevant execution IDs will be included in tenant logs generated as part of that authentication flow. Executions will only be stored for 10 days after their creation. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/executions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java index e212f80b9..ec5335526 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawModulesClient.java @@ -58,6 +58,13 @@ public ManagementApiHttpResponse> list( return list(GetActionModulesRequestParameters.builder().build()); } + /** + * Retrieve a paginated list of all Actions Modules with optional filtering and totals. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(GetActionModulesRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a paginated list of all Actions Modules with optional filtering and totals. */ @@ -77,6 +84,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -145,10 +157,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateActionModuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/modules") - .build(); + .addPathSegments("actions/modules"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -157,7 +173,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -216,13 +232,17 @@ public ManagementApiHttpResponse get(String id) * Retrieve details of a specific Actions Module by its unique identifier. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -279,13 +299,17 @@ public ManagementApiHttpResponse delete(String id) { * Permanently delete an Actions Module. This will fail if the module is still in use by any actions. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -339,6 +363,14 @@ public ManagementApiHttpResponse update(Strin return update(id, UpdateActionModuleRequestContent.builder().build()); } + /** + * Update properties of an existing Actions Module, such as code, dependencies, or secrets. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateActionModuleRequestContent.builder().build(), requestOptions); + } + /** * Update properties of an existing Actions Module, such as code, dependencies, or secrets. */ @@ -352,11 +384,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String id, UpdateActionModuleRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -365,7 +401,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -423,6 +459,14 @@ public ManagementApiHttpResponse> listAct return listActions(id, GetActionModuleActionsRequestParameters.builder().build()); } + /** + * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. + */ + public ManagementApiHttpResponse> listActions( + String id, RequestOptions requestOptions) { + return listActions(id, GetActionModuleActionsRequestParameters.builder().build(), requestOptions); + } + /** * Lists all actions that are using a specific Actions Module, showing which deployed action versions reference this Actions Module. */ @@ -444,6 +488,11 @@ public ManagementApiHttpResponse> listAct QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -515,12 +564,16 @@ public ManagementApiHttpResponse rollback( */ public ManagementApiHttpResponse rollback( String id, RollbackActionModuleRequestParameters request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) - .addPathSegments("rollback") - .build(); + .addPathSegments("rollback"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -529,7 +582,7 @@ public ManagementApiHttpResponse rollback( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java index 66437cc7b..2a673f3e6 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawTriggersClient.java @@ -41,12 +41,16 @@ public ManagementApiHttpResponse list() { * Retrieve the set of triggers currently available within actions. A trigger is an extensibility point to which actions can be bound. */ public ManagementApiHttpResponse list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("actions/triggers") - .build(); + .addPathSegments("actions/triggers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java index 6fb609add..21866d536 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/RawVersionsClient.java @@ -50,6 +50,14 @@ public ManagementApiHttpResponse> list(String return list(actionId, ListActionVersionsRequestParameters.builder().build()); } + /** + * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. + */ + public ManagementApiHttpResponse> list( + String actionId, RequestOptions requestOptions) { + return list(actionId, ListActionVersionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. */ @@ -71,6 +79,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -138,15 +151,19 @@ public ManagementApiHttpResponse get(String act */ public ManagementApiHttpResponse get( String actionId, String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(actionId) .addPathSegments("versions") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -199,6 +216,14 @@ public ManagementApiHttpResponse deploy(Stri return deploy(actionId, id, OptionalNullable.absent()); } + /** + * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. + */ + public ManagementApiHttpResponse deploy( + String actionId, String id, RequestOptions requestOptions) { + return deploy(actionId, id, OptionalNullable.absent(), requestOptions); + } + /** * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. */ @@ -215,14 +240,18 @@ public ManagementApiHttpResponse deploy( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/actions") .addPathSegment(actionId) .addPathSegments("versions") .addPathSegment(id) - .addPathSegments("deploy") - .build(); + .addPathSegments("deploy"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -234,7 +263,7 @@ public ManagementApiHttpResponse deploy( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java index 17c991c9b..01102e010 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/VersionsClient.java @@ -37,6 +37,13 @@ public SyncPagingIterable list(String actionId) { return this.rawClient.list(actionId).body(); } + /** + * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. + */ + public SyncPagingIterable list(String actionId, RequestOptions requestOptions) { + return this.rawClient.list(actionId, requestOptions).body(); + } + /** * Retrieve all of an action's versions. An action version is created whenever an action is deployed. An action version is immutable, once created. */ @@ -73,6 +80,13 @@ public DeployActionVersionResponseContent deploy(String actionId, String id) { return this.rawClient.deploy(actionId, id).body(); } + /** + * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. + */ + public DeployActionVersionResponseContent deploy(String actionId, String id, RequestOptions requestOptions) { + return this.rawClient.deploy(actionId, id, requestOptions).body(); + } + /** * Performs the equivalent of a roll-back of an action to an earlier, specified version. Creates a new, deployed action version that is identical to the specified version. If this action is currently bound to a trigger, the system will begin executing the newly-created version immediately. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java index 7872850b7..b22e064a2 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncRawVersionsClient.java @@ -54,6 +54,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, GetActionModuleVersionsRequestParameters.builder().build(), requestOptions); + } + /** * List all published versions of a specific Actions Module. */ @@ -75,6 +83,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -178,14 +191,18 @@ public CompletableFuture> create( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) - .addPathSegments("versions") - .build(); + .addPathSegments("versions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -274,15 +291,19 @@ public CompletableFuture> get( String id, String versionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) .addPathSegments("versions") - .addPathSegment(versionId) - .build(); + .addPathSegment(versionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncVersionsClient.java index 651e6787b..e6a5eca53 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/AsyncVersionsClient.java @@ -36,6 +36,13 @@ public CompletableFuture> list(String id return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * List all published versions of a specific Actions Module. + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * List all published versions of a specific Actions Module. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java index 79a0142d3..764b30143 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/RawVersionsClient.java @@ -49,6 +49,14 @@ public ManagementApiHttpResponse> list(S return list(id, GetActionModuleVersionsRequestParameters.builder().build()); } + /** + * List all published versions of a specific Actions Module. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, GetActionModuleVersionsRequestParameters.builder().build(), requestOptions); + } + /** * List all published versions of a specific Actions Module. */ @@ -70,6 +78,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -141,14 +154,18 @@ public ManagementApiHttpResponse creat */ public ManagementApiHttpResponse create( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) - .addPathSegments("versions") - .build(); + .addPathSegments("versions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -210,15 +227,19 @@ public ManagementApiHttpResponse get(Stri */ public ManagementApiHttpResponse get( String id, String versionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/modules") .addPathSegment(id) .addPathSegments("versions") - .addPathSegment(versionId) - .build(); + .addPathSegment(versionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/VersionsClient.java b/src/main/java/com/auth0/client/mgmt/actions/modules/VersionsClient.java index 9e750b561..0d97fb099 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/VersionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/VersionsClient.java @@ -35,6 +35,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * List all published versions of a specific Actions Module. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * List all published versions of a specific Actions Module. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java index b8958aa6c..6fdf1c4d6 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java @@ -174,5 +174,15 @@ public Builder perPage(Nullable perPage) { public GetActionModuleVersionsRequestParameters build() { return new GetActionModuleVersionsRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java index db6d66bc4..b557a63de 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncBindingsClient.java @@ -36,6 +36,13 @@ public CompletableFuture> list(String triggerI return this.rawClient.list(triggerId).thenApply(response -> response.body()); } + /** + * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. + */ + public CompletableFuture> list(String triggerId, RequestOptions requestOptions) { + return this.rawClient.list(triggerId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ @@ -59,6 +66,14 @@ public CompletableFuture updateMany(String return this.rawClient.updateMany(triggerId).thenApply(response -> response.body()); } + /** + * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. + */ + public CompletableFuture updateMany( + String triggerId, RequestOptions requestOptions) { + return this.rawClient.updateMany(triggerId, requestOptions).thenApply(response -> response.body()); + } + /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java index 8e82915d3..adb6d141e 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/AsyncRawBindingsClient.java @@ -53,6 +53,15 @@ public CompletableFuture>> list( + String triggerId, RequestOptions requestOptions) { + return list( + triggerId, ListActionTriggerBindingsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ @@ -74,6 +83,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -169,6 +183,15 @@ public CompletableFuture> updateMany( + String triggerId, RequestOptions requestOptions) { + return updateMany( + triggerId, UpdateActionBindingsRequestContent.builder().build(), requestOptions); + } + /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ @@ -182,12 +205,16 @@ public CompletableFuture> updateMany( String triggerId, UpdateActionBindingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/triggers") .addPathSegment(triggerId) - .addPathSegments("bindings") - .build(); + .addPathSegments("bindings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -196,7 +223,7 @@ public CompletableFuture list(String triggerId) { return this.rawClient.list(triggerId).body(); } + /** + * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. + */ + public SyncPagingIterable list(String triggerId, RequestOptions requestOptions) { + return this.rawClient.list(triggerId, requestOptions).body(); + } + /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ @@ -58,6 +65,13 @@ public UpdateActionBindingsResponseContent updateMany(String triggerId) { return this.rawClient.updateMany(triggerId).body(); } + /** + * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. + */ + public UpdateActionBindingsResponseContent updateMany(String triggerId, RequestOptions requestOptions) { + return this.rawClient.updateMany(triggerId, requestOptions).body(); + } + /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java index 31dba3936..ed8f68979 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/RawBindingsClient.java @@ -48,6 +48,15 @@ public ManagementApiHttpResponse> list(String triggerId, ListActionTriggerBindingsRequestParameters.builder().build()); } + /** + * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. + */ + public ManagementApiHttpResponse> list( + String triggerId, RequestOptions requestOptions) { + return list( + triggerId, ListActionTriggerBindingsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve the actions that are bound to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions returned reflects the order in which they will be executed during the appropriate flow. */ @@ -69,6 +78,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "per_page", request.getPerPage().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -133,6 +147,15 @@ public ManagementApiHttpResponse updateMany triggerId, UpdateActionBindingsRequestContent.builder().build()); } + /** + * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. + */ + public ManagementApiHttpResponse updateMany( + String triggerId, RequestOptions requestOptions) { + return updateMany( + triggerId, UpdateActionBindingsRequestContent.builder().build(), requestOptions); + } + /** * Update the actions that are bound (i.e. attached) to a trigger. Once an action is created and deployed, it must be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The order in which the actions are provided will determine the order in which they are executed. */ @@ -146,12 +169,16 @@ public ManagementApiHttpResponse updateMany */ public ManagementApiHttpResponse updateMany( String triggerId, UpdateActionBindingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("actions/triggers") .addPathSegment(triggerId) - .addPathSegments("bindings") - .build(); + .addPathSegments("bindings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -160,7 +187,7 @@ public ManagementApiHttpResponse updateMany throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java index a01a1b304..c1e52d343 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java @@ -174,5 +174,15 @@ public Builder perPage(Nullable perPage) { public ListActionTriggerBindingsRequestParameters build() { return new ListActionTriggerBindingsRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/UpdateActionBindingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/UpdateActionBindingsRequestContent.java index c65556ba6..a36bdde20 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/UpdateActionBindingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/UpdateActionBindingsRequestContent.java @@ -101,5 +101,15 @@ public Builder bindings(List bindings) { public UpdateActionBindingsRequestContent build() { return new UpdateActionBindingsRequestContent(bindings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java index f2e77d219..8a8359a21 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/CreateActionModuleRequestContent.java @@ -156,6 +156,10 @@ public interface CodeStage { public interface _FinalStage { CreateActionModuleRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The secrets to associate with the action module.

    */ @@ -324,5 +328,17 @@ public CreateActionModuleRequestContent build() { return new CreateActionModuleRequestContent( name, code, secrets, dependencies, apiVersion, publish, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java index 363e8755f..50678f726 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java @@ -174,5 +174,15 @@ public Builder perPage(Nullable perPage) { public GetActionModuleActionsRequestParameters build() { return new GetActionModuleActionsRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java index 1c3fdddfe..bdccb9af8 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java @@ -173,5 +173,15 @@ public Builder perPage(Nullable perPage) { public GetActionModulesRequestParameters build() { return new GetActionModulesRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java index 637473e20..4effc7a43 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java @@ -174,5 +174,15 @@ public Builder perPage(Nullable perPage) { public ListActionVersionsRequestParameters build() { return new ListActionVersionsRequestParameters(page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java index dfd5cac48..987bbffb5 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/RollbackActionModuleRequestParameters.java @@ -77,6 +77,10 @@ public interface ModuleVersionIdStage { public interface _FinalStage { RollbackActionModuleRequestParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage moduleVersionId(@NotNull String moduleVersionId) { public RollbackActionModuleRequestParameters build() { return new RollbackActionModuleRequestParameters(moduleVersionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/UpdateActionModuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/actions/types/UpdateActionModuleRequestContent.java index 0df1aa38c..0a56f54d0 100644 --- a/src/main/java/com/auth0/client/mgmt/actions/types/UpdateActionModuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/actions/types/UpdateActionModuleRequestContent.java @@ -160,5 +160,15 @@ public Builder dependencies(List dependencies) { public UpdateActionModuleRequestContent build() { return new UpdateActionModuleRequestContent(code, secrets, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncBlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncBlocksClient.java index 06f784726..3210fc85e 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncBlocksClient.java @@ -25,28 +25,28 @@ public AsyncRawBlocksClient withRawResponse() { } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public CompletableFuture checkIp(String id) { return this.rawClient.checkIp(id).thenApply(response -> response.body()); } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public CompletableFuture checkIp(String id, RequestOptions requestOptions) { return this.rawClient.checkIp(id, requestOptions).thenApply(response -> response.body()); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public CompletableFuture unblockIp(String id) { return this.rawClient.unblockIp(id).thenApply(response -> response.body()); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public CompletableFuture unblockIp(String id, RequestOptions requestOptions) { return this.rawClient.unblockIp(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java index bf00da071..810421066 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/AsyncRawBlocksClient.java @@ -35,23 +35,27 @@ public AsyncRawBlocksClient(ClientOptions clientOptions) { } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public CompletableFuture> checkIp(String id) { return checkIp(id, null); } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public CompletableFuture> checkIp(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("anomaly/blocks/ips") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -119,23 +123,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public CompletableFuture> unblockIp(String id) { return unblockIp(id, null); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public CompletableFuture> unblockIp(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("anomaly/blocks/ips") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/BlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/BlocksClient.java index 314e48ad2..1eddba52b 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/BlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/BlocksClient.java @@ -24,28 +24,28 @@ public RawBlocksClient withRawResponse() { } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public void checkIp(String id) { this.rawClient.checkIp(id).body(); } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public void checkIp(String id, RequestOptions requestOptions) { this.rawClient.checkIp(id, requestOptions).body(); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public void unblockIp(String id) { this.rawClient.unblockIp(id).body(); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public void unblockIp(String id, RequestOptions requestOptions) { this.rawClient.unblockIp(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java b/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java index c712fc492..4622565ca 100644 --- a/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java +++ b/src/main/java/com/auth0/client/mgmt/anomaly/RawBlocksClient.java @@ -31,23 +31,27 @@ public RawBlocksClient(ClientOptions clientOptions) { } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public ManagementApiHttpResponse checkIp(String id) { return checkIp(id, null); } /** - * Check if the given IP address is blocked via the <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> due to multiple suspicious attempts. + * Check if the given IP address is blocked via the Suspicious IP Throttling due to multiple suspicious attempts. */ public ManagementApiHttpResponse checkIp(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("anomaly/blocks/ips") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -92,23 +96,27 @@ public ManagementApiHttpResponse checkIp(String id, RequestOptions request } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public ManagementApiHttpResponse unblockIp(String id) { return unblockIp(id, null); } /** - * Remove a block imposed by <a href="https://auth0.com/docs/configure/attack-protection/suspicious-ip-throttling">Suspicious IP Throttling</a> for the given IP address. + * Remove a block imposed by Suspicious IP Throttling for the given IP address. */ public ManagementApiHttpResponse unblockIp(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("anomaly/blocks/ips") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBotDetectionClient.java index 523b9ff77..d3b572574 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBotDetectionClient.java @@ -48,6 +48,13 @@ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update the Bot Detection configuration of your tenant. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update the Bot Detection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBreachedPasswordDetectionClient.java index ddb5d75cf..dfd972585 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBreachedPasswordDetectionClient.java @@ -48,6 +48,14 @@ public CompletableFuture return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update details of the Breached Password Detection configuration of your tenant. + */ + public CompletableFuture update( + RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update details of the Breached Password Detection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBruteForceProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBruteForceProtectionClient.java index 4a54b4d7b..4f820ea77 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBruteForceProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncBruteForceProtectionClient.java @@ -48,6 +48,13 @@ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update the Brute-force Protection configuration of your tenant. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update the Brute-force Protection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncCaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncCaptchaClient.java index 64ccef632..bde5d1a02 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncCaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncCaptchaClient.java @@ -48,6 +48,13 @@ public CompletableFuture update() return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update existing CAPTCHA configuration for your client. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update existing CAPTCHA configuration for your client. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java index c8d7f6f83..f86083c20 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/AsyncRawBotDetectionClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/bot-detection") - .build(); + .addPathSegments("attack-protection/bot-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -129,6 +133,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateBotDetectionSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the Bot Detection configuration of your tenant. */ @@ -142,10 +154,14 @@ public CompletableFuture> update( UpdateBotDetectionSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/bot-detection") - .build(); + .addPathSegments("attack-protection/bot-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -154,7 +170,7 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/breached-password-detection") - .build(); + .addPathSegments("attack-protection/breached-password-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -125,6 +129,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { UpdateBreachedPasswordDetectionSettingsRequestContent.builder().build()); } + /** + * Update details of the Breached Password Detection configuration of your tenant. + */ + public CompletableFuture> update( + RequestOptions requestOptions) { + return update( + UpdateBreachedPasswordDetectionSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update details of the Breached Password Detection configuration of your tenant. */ @@ -138,10 +151,14 @@ public CompletableFuture> update( UpdateBreachedPasswordDetectionSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/breached-password-detection") - .build(); + .addPathSegments("attack-protection/breached-password-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -150,7 +167,7 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/brute-force-protection") - .build(); + .addPathSegments("attack-protection/brute-force-protection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -123,6 +127,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateBruteForceSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the Brute-force Protection configuration of your tenant. */ @@ -136,10 +148,14 @@ public CompletableFuture> update( UpdateBruteForceSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/brute-force-protection") - .build(); + .addPathSegments("attack-protection/brute-force-protection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -148,7 +164,7 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/captcha") - .build(); + .addPathSegments("attack-protection/captcha"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -128,6 +132,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateAttackProtectionCaptchaRequestContent.builder().build(), requestOptions); + } + /** * Update existing CAPTCHA configuration for your client. */ @@ -141,10 +153,14 @@ public CompletableFuture> update( UpdateAttackProtectionCaptchaRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/captcha") - .build(); + .addPathSegments("attack-protection/captcha"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -153,7 +169,7 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/suspicious-ip-throttling") - .build(); + .addPathSegments("attack-protection/suspicious-ip-throttling"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -124,6 +128,15 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update( + UpdateSuspiciousIpThrottlingSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the details of the Suspicious IP Throttling configuration of your tenant. */ @@ -137,10 +150,14 @@ public CompletableFuture> update( UpdateSuspiciousIpThrottlingSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/suspicious-ip-throttling") - .build(); + .addPathSegments("attack-protection/suspicious-ip-throttling"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -149,7 +166,7 @@ public CompletableFuture up return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update the details of the Suspicious IP Throttling configuration of your tenant. + */ + public CompletableFuture update( + RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update the details of the Suspicious IP Throttling configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/BotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/BotDetectionClient.java index 471691e24..64a4c11bd 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/BotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/BotDetectionClient.java @@ -47,6 +47,13 @@ public UpdateBotDetectionSettingsResponseContent update() { return this.rawClient.update().body(); } + /** + * Update the Bot Detection configuration of your tenant. + */ + public UpdateBotDetectionSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update the Bot Detection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/BreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/BreachedPasswordDetectionClient.java index a2746f1ef..463a5de5c 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/BreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/BreachedPasswordDetectionClient.java @@ -47,6 +47,13 @@ public UpdateBreachedPasswordDetectionSettingsResponseContent update() { return this.rawClient.update().body(); } + /** + * Update details of the Breached Password Detection configuration of your tenant. + */ + public UpdateBreachedPasswordDetectionSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update details of the Breached Password Detection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/BruteForceProtectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/BruteForceProtectionClient.java index be1c4a722..c512fe473 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/BruteForceProtectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/BruteForceProtectionClient.java @@ -47,6 +47,13 @@ public UpdateBruteForceSettingsResponseContent update() { return this.rawClient.update().body(); } + /** + * Update the Brute-force Protection configuration of your tenant. + */ + public UpdateBruteForceSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update the Brute-force Protection configuration of your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/CaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/CaptchaClient.java index 8e11badfc..21281e33d 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/CaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/CaptchaClient.java @@ -47,6 +47,13 @@ public UpdateAttackProtectionCaptchaResponseContent update() { return this.rawClient.update().body(); } + /** + * Update existing CAPTCHA configuration for your client. + */ + public UpdateAttackProtectionCaptchaResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update existing CAPTCHA configuration for your client. */ diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java index 8ba3bfe69..d098bc9fc 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBotDetectionClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse get() { * Get the Bot Detection configuration of your tenant. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/bot-detection") - .build(); + .addPathSegments("attack-protection/bot-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -102,6 +106,13 @@ public ManagementApiHttpResponse upda return update(UpdateBotDetectionSettingsRequestContent.builder().build()); } + /** + * Update the Bot Detection configuration of your tenant. + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateBotDetectionSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the Bot Detection configuration of your tenant. */ @@ -115,10 +126,14 @@ public ManagementApiHttpResponse upda */ public ManagementApiHttpResponse update( UpdateBotDetectionSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/bot-detection") - .build(); + .addPathSegments("attack-protection/bot-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -127,7 +142,7 @@ public ManagementApiHttpResponse upda throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java index 7839a7ff7..07cca9b08 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawBreachedPasswordDetectionClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/breached-password-detection") - .build(); + .addPathSegments("attack-protection/breached-password-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -100,6 +104,15 @@ public ManagementApiHttpResponse update( + RequestOptions requestOptions) { + return update( + UpdateBreachedPasswordDetectionSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update details of the Breached Password Detection configuration of your tenant. */ @@ -113,10 +126,14 @@ public ManagementApiHttpResponse update( UpdateBreachedPasswordDetectionSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/breached-password-detection") - .build(); + .addPathSegments("attack-protection/breached-password-detection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -125,7 +142,7 @@ public ManagementApiHttpResponse get() { * Retrieve details of the Brute-force Protection configuration of your tenant. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/brute-force-protection") - .build(); + .addPathSegments("attack-protection/brute-force-protection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -98,6 +102,13 @@ public ManagementApiHttpResponse update return update(UpdateBruteForceSettingsRequestContent.builder().build()); } + /** + * Update the Brute-force Protection configuration of your tenant. + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateBruteForceSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the Brute-force Protection configuration of your tenant. */ @@ -111,10 +122,14 @@ public ManagementApiHttpResponse update */ public ManagementApiHttpResponse update( UpdateBruteForceSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/brute-force-protection") - .build(); + .addPathSegments("attack-protection/brute-force-protection"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -123,7 +138,7 @@ public ManagementApiHttpResponse update throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java index e88cc0bd8..dcc0b0620 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawCaptchaClient.java @@ -45,12 +45,16 @@ public ManagementApiHttpResponse get( * Get the CAPTCHA configuration for your client. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/captcha") - .build(); + .addPathSegments("attack-protection/captcha"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -101,6 +105,14 @@ public ManagementApiHttpResponse u return update(UpdateAttackProtectionCaptchaRequestContent.builder().build()); } + /** + * Update existing CAPTCHA configuration for your client. + */ + public ManagementApiHttpResponse update( + RequestOptions requestOptions) { + return update(UpdateAttackProtectionCaptchaRequestContent.builder().build(), requestOptions); + } + /** * Update existing CAPTCHA configuration for your client. */ @@ -114,10 +126,14 @@ public ManagementApiHttpResponse u */ public ManagementApiHttpResponse update( UpdateAttackProtectionCaptchaRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/captcha") - .build(); + .addPathSegments("attack-protection/captcha"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -126,7 +142,7 @@ public ManagementApiHttpResponse u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java b/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java index d1ce48e46..d4f349a67 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/RawSuspiciousIpThrottlingClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/suspicious-ip-throttling") - .build(); + .addPathSegments("attack-protection/suspicious-ip-throttling"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -100,6 +104,15 @@ public ManagementApiHttpResponse update( + RequestOptions requestOptions) { + return update( + UpdateSuspiciousIpThrottlingSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update the details of the Suspicious IP Throttling configuration of your tenant. */ @@ -113,10 +126,14 @@ public ManagementApiHttpResponse update( UpdateSuspiciousIpThrottlingSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("attack-protection/suspicious-ip-throttling") - .build(); + .addPathSegments("attack-protection/suspicious-ip-throttling"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -125,7 +142,7 @@ public ManagementApiHttpResponse additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBotDetectionSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBotDetectionSettingsRequestContent.java index ae360f6ae..ecaafcb3f 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBotDetectionSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBotDetectionSettingsRequestContent.java @@ -239,5 +239,15 @@ public UpdateBotDetectionSettingsRequestContent build() { monitoringModeEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBreachedPasswordDetectionSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBreachedPasswordDetectionSettingsRequestContent.java index ddd475caa..d7a464b94 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBreachedPasswordDetectionSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBreachedPasswordDetectionSettingsRequestContent.java @@ -62,7 +62,7 @@ public Optional getEnabled() { /** * @return Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>. + * Possible values: block, user_notification, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -71,7 +71,7 @@ public Optional> getShields() { /** * @return When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>. + * Possible values: immediately, daily, weekly, monthly. */ @JsonProperty("admin_notification_frequency") public Optional> getAdminNotificationFrequency() { @@ -165,7 +165,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>.

    + * Possible values: block, user_notification, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -180,7 +180,7 @@ public Builder shields(List shields) { /** *

    When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>.

    + * Possible values: immediately, daily, weekly, monthly.

    */ @JsonSetter(value = "admin_notification_frequency", nulls = Nulls.SKIP) public Builder adminNotificationFrequency( @@ -221,5 +221,15 @@ public UpdateBreachedPasswordDetectionSettingsRequestContent build() { return new UpdateBreachedPasswordDetectionSettingsRequestContent( enabled, shields, adminNotificationFrequency, method, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBruteForceSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBruteForceSettingsRequestContent.java index 39ac83e7a..9668b7de6 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBruteForceSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateBruteForceSettingsRequestContent.java @@ -60,7 +60,7 @@ public Optional getEnabled() { /** * @return Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>. + * Possible values: block, user_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -164,7 +164,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>.

    + * Possible values: block, user_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -220,5 +220,15 @@ public UpdateBruteForceSettingsRequestContent build() { return new UpdateBruteForceSettingsRequestContent( enabled, shields, allowlist, mode, maxAttempts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateSuspiciousIpThrottlingSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateSuspiciousIpThrottlingSettingsRequestContent.java index de916780f..1ceca4448 100644 --- a/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateSuspiciousIpThrottlingSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/attackprotection/types/UpdateSuspiciousIpThrottlingSettingsRequestContent.java @@ -56,7 +56,7 @@ public Optional getEnabled() { /** * @return Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -145,7 +145,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -184,5 +184,15 @@ public UpdateSuspiciousIpThrottlingSettingsRequestContent build() { return new UpdateSuspiciousIpThrottlingSettingsRequestContent( enabled, shields, allowlist, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawTemplatesClient.java index b7a4f943d..df2bb17bc 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawTemplatesClient.java @@ -46,12 +46,16 @@ public CompletableFuture> getUniversalLogin( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -124,16 +128,16 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -144,7 +148,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public CompletableFuture> updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request) { @@ -153,16 +157,16 @@ public CompletableFuture> updateUniversalLogin( /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -173,14 +177,18 @@ public CompletableFuture> updateUniversalLogin(
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public CompletableFuture> updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -189,7 +197,7 @@ public CompletableFuture> updateUniversalLogin( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -267,12 +275,16 @@ public CompletableFuture> deleteUniversalLogin() } public CompletableFuture> deleteUniversalLogin(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java index 618a45b5e..405a64b27 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/AsyncRawThemesClient.java @@ -56,10 +56,14 @@ public CompletableFuture> create( CreateBrandingThemeRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/themes") - .build(); + .addPathSegments("branding/themes"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -68,7 +72,7 @@ public CompletableFuture> getDefault( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/themes/default") - .build(); + .addPathSegments("branding/themes/default"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -235,13 +243,17 @@ public CompletableFuture> get( String themeId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -318,13 +330,17 @@ public CompletableFuture> delete(String themeId) * Delete branding theme. */ public CompletableFuture> delete(String themeId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -399,11 +415,15 @@ public CompletableFuture> update( String themeId, UpdateBrandingThemeRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -412,7 +432,7 @@ public CompletableFuture getUniversalL /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -57,7 +57,7 @@ public CompletableFuture getUniversalL
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public CompletableFuture updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent request) { return this.rawClient.updateUniversalLogin(request).thenApply(response -> response.body()); @@ -65,16 +65,16 @@ public CompletableFuture updateUniversalLogin(UpdateUniversalLoginTemplate /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -85,7 +85,7 @@ public CompletableFuture updateUniversalLogin(UpdateUniversalLoginTemplate
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public CompletableFuture updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java index 85a5a3f0f..03751a951 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/RawTemplatesClient.java @@ -42,12 +42,16 @@ public ManagementApiHttpResponse getUn public ManagementApiHttpResponse getUniversalLogin( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -96,16 +100,16 @@ public ManagementApiHttpResponse getUn /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -116,7 +120,7 @@ public ManagementApiHttpResponse getUn
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public ManagementApiHttpResponse updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent request) { return updateUniversalLogin(request, null); @@ -124,16 +128,16 @@ public ManagementApiHttpResponse updateUniversalLogin(UpdateUniversalLogin /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -144,14 +148,18 @@ public ManagementApiHttpResponse updateUniversalLogin(UpdateUniversalLogin
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public ManagementApiHttpResponse updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -160,7 +168,7 @@ public ManagementApiHttpResponse updateUniversalLogin( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -213,12 +221,16 @@ public ManagementApiHttpResponse deleteUniversalLogin() { } public ManagementApiHttpResponse deleteUniversalLogin(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/templates/universal-login") - .build(); + .addPathSegments("branding/templates/universal-login"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java b/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java index a16997d17..8b9de65b4 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/RawThemesClient.java @@ -52,10 +52,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateBrandingThemeRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/themes") - .build(); + .addPathSegments("branding/themes"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -64,7 +68,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -123,12 +127,16 @@ public ManagementApiHttpResponse getDefa * Retrieve default branding theme. */ public ManagementApiHttpResponse getDefault(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/themes/default") - .build(); + .addPathSegments("branding/themes/default"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -184,13 +192,17 @@ public ManagementApiHttpResponse get(String the */ public ManagementApiHttpResponse get( String themeId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -244,13 +256,17 @@ public ManagementApiHttpResponse delete(String themeId) { * Delete branding theme. */ public ManagementApiHttpResponse delete(String themeId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -304,11 +320,15 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( String themeId, UpdateBrandingThemeRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/themes") - .addPathSegment(themeId) - .build(); + .addPathSegment(themeId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -317,7 +337,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/branding/TemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/TemplatesClient.java index 06ec08d52..2e27e21db 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/TemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/TemplatesClient.java @@ -35,16 +35,16 @@ public GetUniversalLoginTemplateResponseContent getUniversalLogin(RequestOptions /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -55,7 +55,7 @@ public GetUniversalLoginTemplateResponseContent getUniversalLogin(RequestOptions
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public void updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent request) { this.rawClient.updateUniversalLogin(request).body(); @@ -63,16 +63,16 @@ public void updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent requ /** * Update the Universal Login branding template. - *

    <p>When <code>content-type</code> header is set to <code>application/json</code>:</p> - * <pre> + *

    When content-type header is set to application/json:

    + *
          * {
          *   "template": "&lt;!DOCTYPE html&gt;{% assign resolved_dir = dir | default: "auto" %}&lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;&lt;head&gt;{%- auth0:head -%}&lt;/head&gt;&lt;body class="_widget-auto-layout"&gt;{%- auth0:widget -%}&lt;/body&gt;&lt;/html&gt;"
          * }
    -     * </pre>

    - *

    <p> - * When <code>content-type</code> header is set to <code>text/html</code>: - * </p> - * <pre> + *

    + *

    + * When content-type header is set to text/html: + *

    + *
          * &lt!DOCTYPE html&gt;
          * {% assign resolved_dir = dir | default: "auto" %}
          * &lt;html lang="{{locale}}" dir="{{resolved_dir}}"&gt;
    @@ -83,7 +83,7 @@ public void updateUniversalLogin(UpdateUniversalLoginTemplateRequestContent requ
          *     {%- auth0:widget -%}
          *   &lt;/body&gt;
          * &lt;/html&gt;
    -     * </pre>

    + *

    */ public void updateUniversalLogin( UpdateUniversalLoginTemplateRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncProvidersClient.java index 2c88e697d..5c76b9940 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncProvidersClient.java @@ -34,14 +34,21 @@ public AsyncRawProvidersClient withRawResponse() { } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture list( ListBrandingPhoneProvidersRequestParameters request) { @@ -49,7 +56,7 @@ public CompletableFuture list( } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture list( ListBrandingPhoneProvidersRequestParameters request, RequestOptions requestOptions) { @@ -57,8 +64,8 @@ public CompletableFuture list( } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture create( CreateBrandingPhoneProviderRequestContent request) { @@ -66,8 +73,8 @@ public CompletableFuture create( } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture create( CreateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { @@ -75,14 +82,14 @@ public CompletableFuture create( } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -103,16 +110,25 @@ public CompletableFuture delete(String id, RequestOptions requestOptions) } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). + */ + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture update( String id, UpdateBrandingPhoneProviderRequestContent request) { @@ -120,8 +136,8 @@ public CompletableFuture update( } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture update( String id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java index ea8a53c5e..820cee52d 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/AsyncRawProvidersClient.java @@ -48,14 +48,22 @@ public AsyncRawProvidersClient(ClientOptions clientOptions) { } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> list() { return list(ListBrandingPhoneProvidersRequestParameters.builder().build()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture> list( + RequestOptions requestOptions) { + return list(ListBrandingPhoneProvidersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> list( ListBrandingPhoneProvidersRequestParameters request) { @@ -63,7 +71,7 @@ public CompletableFuturephone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> list( ListBrandingPhoneProvidersRequestParameters request, RequestOptions requestOptions) { @@ -74,6 +82,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -142,8 +155,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> create( CreateBrandingPhoneProviderRequestContent request) { @@ -151,15 +164,19 @@ public CompletableFuturephone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> create( CreateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/phone/providers") - .build(); + .addPathSegments("branding/phone/providers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -168,7 +185,7 @@ public CompletableFuturephone provider details. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get(String id) { return get(id, null); } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -340,13 +361,17 @@ public CompletableFuture> delete(String id) { * Delete the configured phone provider. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -409,16 +434,25 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> update(String id) { return update(id, UpdateBrandingPhoneProviderRequestContent.builder().build()); } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateBrandingPhoneProviderRequestContent.builder().build(), requestOptions); + } + + /** + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> update( String id, UpdateBrandingPhoneProviderRequestContent request) { @@ -426,16 +460,20 @@ public CompletableFuturephone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CompletableFuture> update( String id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -444,7 +482,7 @@ public CompletableFuture> test( String id, CreatePhoneProviderSendTestRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") .addPathSegment(id) - .addPathSegments("try") - .build(); + .addPathSegments("try"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -542,7 +584,7 @@ public CompletableFuture> list( + RequestOptions requestOptions) { + return list(ListPhoneTemplatesRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture> list( ListPhoneTemplatesRequestParameters request) { return list(request, null); @@ -66,6 +71,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -137,6 +147,11 @@ public CompletableFuture> create( + RequestOptions requestOptions) { + return create(CreatePhoneTemplateRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> create( CreatePhoneTemplateRequestContent request) { return create(request, null); @@ -144,10 +159,14 @@ public CompletableFuture> create( CreatePhoneTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/phone/templates") - .build(); + .addPathSegments("branding/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +175,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -316,13 +339,17 @@ public CompletableFuture> delete(String id) { } public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -393,6 +420,11 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdatePhoneTemplateRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( String id, UpdatePhoneTemplateRequestContent request) { return update(id, request, null); @@ -400,11 +432,15 @@ public CompletableFuture> update( String id, UpdatePhoneTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -413,7 +449,7 @@ public CompletableFuture> reset( String id, Object request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") .addPathSegment(id) - .addPathSegments("reset") - .build(); + .addPathSegments("reset"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -506,7 +546,7 @@ public CompletableFuture> test( String id, CreatePhoneTemplateTestNotificationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") .addPathSegment(id) - .addPathSegments("try") - .build(); + .addPathSegments("try"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -594,7 +638,7 @@ public CompletableFuture list() { return this.rawClient.list().thenApply(response -> response.body()); } + public CompletableFuture list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture list(ListPhoneTemplatesRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); } @@ -51,6 +55,10 @@ public CompletableFuture create() { return this.rawClient.create().thenApply(response -> response.body()); } + public CompletableFuture create(RequestOptions requestOptions) { + return this.rawClient.create(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture create(CreatePhoneTemplateRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } @@ -80,6 +88,10 @@ public CompletableFuture update(String id) { return this.rawClient.update(id).thenApply(response -> response.body()); } + public CompletableFuture update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update( String id, UpdatePhoneTemplateRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/ProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/ProvidersClient.java index c762a0b4c..8b845ec76 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/ProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/ProvidersClient.java @@ -33,21 +33,28 @@ public RawProvidersClient withRawResponse() { } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ListBrandingPhoneProvidersResponseContent list() { return this.rawClient.list().body(); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. + */ + public ListBrandingPhoneProvidersResponseContent list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + + /** + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ListBrandingPhoneProvidersResponseContent list(ListBrandingPhoneProvidersRequestParameters request) { return this.rawClient.list(request).body(); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ListBrandingPhoneProvidersResponseContent list( ListBrandingPhoneProvidersRequestParameters request, RequestOptions requestOptions) { @@ -55,16 +62,16 @@ public ListBrandingPhoneProvidersResponseContent list( } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CreateBrandingPhoneProviderResponseContent create(CreateBrandingPhoneProviderRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public CreateBrandingPhoneProviderResponseContent create( CreateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { @@ -72,14 +79,14 @@ public CreateBrandingPhoneProviderResponseContent create( } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public GetBrandingPhoneProviderResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public GetBrandingPhoneProviderResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -100,16 +107,24 @@ public void delete(String id, RequestOptions requestOptions) { } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public UpdateBrandingPhoneProviderResponseContent update(String id) { return this.rawClient.update(id).body(); } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). + */ + public UpdateBrandingPhoneProviderResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + + /** + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public UpdateBrandingPhoneProviderResponseContent update( String id, UpdateBrandingPhoneProviderRequestContent request) { @@ -117,8 +132,8 @@ public UpdateBrandingPhoneProviderResponseContent update( } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public UpdateBrandingPhoneProviderResponseContent update( String id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java index 1e3d469ef..a057218bc 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/RawProvidersClient.java @@ -44,14 +44,21 @@ public RawProvidersClient(ClientOptions clientOptions) { } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse list() { return list(ListBrandingPhoneProvidersRequestParameters.builder().build()); } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. + */ + public ManagementApiHttpResponse list(RequestOptions requestOptions) { + return list(ListBrandingPhoneProvidersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse list( ListBrandingPhoneProvidersRequestParameters request) { @@ -59,7 +66,7 @@ public ManagementApiHttpResponse list } /** - * Retrieve a list of <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone providers</a> details set for a Tenant. A list of fields to include or exclude may also be specified. + * Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse list( ListBrandingPhoneProvidersRequestParameters request, RequestOptions requestOptions) { @@ -70,6 +77,11 @@ public ManagementApiHttpResponse list QueryStringMapper.addQueryParameter( httpUrl, "disabled", request.getDisabled().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -116,8 +128,8 @@ public ManagementApiHttpResponse list } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse create( CreateBrandingPhoneProviderRequestContent request) { @@ -125,15 +137,19 @@ public ManagementApiHttpResponse cre } /** - * Create a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Create a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse create( CreateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/phone/providers") - .build(); + .addPathSegments("branding/phone/providers"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -142,7 +158,7 @@ public ManagementApiHttpResponse cre throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -191,24 +207,28 @@ public ManagementApiHttpResponse cre } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get(String id) { return get(id, null); } /** - * Retrieve <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a> details. A list of fields to include or exclude may also be specified. + * Retrieve phone provider details. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -266,13 +286,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete the configured phone provider. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -314,16 +338,25 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse update(String id) { return update(id, UpdateBrandingPhoneProviderRequestContent.builder().build()); } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateBrandingPhoneProviderRequestContent.builder().build(), requestOptions); + } + + /** + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse update( String id, UpdateBrandingPhoneProviderRequestContent request) { @@ -331,16 +364,20 @@ public ManagementApiHttpResponse upd } /** - * Update a <a href="https://auth0.com/docs/customize/phone-messages/configure-phone-messaging-providers">phone provider</a>. - * The <code>credentials</code> object requires different properties depending on the phone provider (which is specified using the <code>name</code> property). + * Update a phone provider. + * The credentials object requires different properties depending on the phone provider (which is specified using the name property). */ public ManagementApiHttpResponse update( String id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -349,7 +386,7 @@ public ManagementApiHttpResponse upd throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -407,12 +444,16 @@ public ManagementApiHttpResponse tes public ManagementApiHttpResponse test( String id, CreatePhoneProviderSendTestRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/providers") .addPathSegment(id) - .addPathSegments("try") - .build(); + .addPathSegments("try"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -421,7 +462,7 @@ public ManagementApiHttpResponse tes throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java index eeada4900..3a44e5ea7 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/RawTemplatesClient.java @@ -48,6 +48,10 @@ public ManagementApiHttpResponse list() { return list(ListPhoneTemplatesRequestParameters.builder().build()); } + public ManagementApiHttpResponse list(RequestOptions requestOptions) { + return list(ListPhoneTemplatesRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse list( ListPhoneTemplatesRequestParameters request) { return list(request, null); @@ -62,6 +66,11 @@ public ManagementApiHttpResponse list( QueryStringMapper.addQueryParameter( httpUrl, "disabled", request.getDisabled().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -111,6 +120,10 @@ public ManagementApiHttpResponse create() { return create(CreatePhoneTemplateRequestContent.builder().build()); } + public ManagementApiHttpResponse create(RequestOptions requestOptions) { + return create(CreatePhoneTemplateRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse create( CreatePhoneTemplateRequestContent request) { return create(request, null); @@ -118,10 +131,14 @@ public ManagementApiHttpResponse create( public ManagementApiHttpResponse create( CreatePhoneTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("branding/phone/templates") - .build(); + .addPathSegments("branding/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -130,7 +147,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -183,13 +200,17 @@ public ManagementApiHttpResponse get(String id) } public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -240,13 +261,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -294,6 +319,11 @@ public ManagementApiHttpResponse update(Stri return update(id, UpdatePhoneTemplateRequestContent.builder().build()); } + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdatePhoneTemplateRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update( String id, UpdatePhoneTemplateRequestContent request) { return update(id, request, null); @@ -301,11 +331,15 @@ public ManagementApiHttpResponse update( public ManagementApiHttpResponse update( String id, UpdatePhoneTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -314,7 +348,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -368,12 +402,16 @@ public ManagementApiHttpResponse reset(String public ManagementApiHttpResponse reset( String id, Object request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") .addPathSegment(id) - .addPathSegments("reset") - .build(); + .addPathSegments("reset"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -382,7 +420,7 @@ public ManagementApiHttpResponse reset( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -434,12 +472,16 @@ public ManagementApiHttpResponse test( String id, CreatePhoneTemplateTestNotificationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("branding/phone/templates") .addPathSegment(id) - .addPathSegments("try") - .build(); + .addPathSegments("try"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -448,7 +490,7 @@ public ManagementApiHttpResponse additionalProperties); + /** *

    Whether the provider is enabled (false) or disabled (true).

    */ @@ -204,5 +208,17 @@ public CreateBrandingPhoneProviderRequestContent build() { return new CreateBrandingPhoneProviderRequestContent( name, disabled, configuration, credentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneProviderSendTestRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneProviderSendTestRequestContent.java index ebbbd5cce..ec802badc 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneProviderSendTestRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneProviderSendTestRequestContent.java @@ -92,6 +92,10 @@ public interface ToStage { public interface _FinalStage { CreatePhoneProviderSendTestRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage deliveryMethod(Optional deliveryMethod); _FinalStage deliveryMethod(PhoneProviderDeliveryMethodEnum deliveryMethod); @@ -144,5 +148,17 @@ public _FinalStage deliveryMethod(Optional deli public CreatePhoneProviderSendTestRequestContent build() { return new CreatePhoneProviderSendTestRequestContent(to, deliveryMethod, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateRequestContent.java index 2d9f5467d..f95ce2c39 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateRequestContent.java @@ -147,5 +147,15 @@ public Builder content(PhoneTemplateContent content) { public CreatePhoneTemplateRequestContent build() { return new CreatePhoneTemplateRequestContent(type, disabled, content, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java index 7cb0e906b..30aba30f5 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/CreatePhoneTemplateTestNotificationRequestContent.java @@ -92,6 +92,10 @@ public interface ToStage { public interface _FinalStage { CreatePhoneTemplateTestNotificationRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage deliveryMethod(Optional deliveryMethod); _FinalStage deliveryMethod(PhoneProviderDeliveryMethodEnum deliveryMethod); @@ -144,5 +148,17 @@ public _FinalStage deliveryMethod(Optional deli public CreatePhoneTemplateTestNotificationRequestContent build() { return new CreatePhoneTemplateTestNotificationRequestContent(to, deliveryMethod, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java index 4546bbb2e..0ecc30f27 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListBrandingPhoneProvidersRequestParameters.java @@ -132,5 +132,15 @@ public Builder disabled(com.auth0.client.mgmt.core.Nullable disabled) { public ListBrandingPhoneProvidersRequestParameters build() { return new ListBrandingPhoneProvidersRequestParameters(disabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java index a2186347a..93eabbfa6 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/ListPhoneTemplatesRequestParameters.java @@ -132,5 +132,15 @@ public Builder disabled(com.auth0.client.mgmt.core.Nullable disabled) { public ListPhoneTemplatesRequestParameters build() { return new ListPhoneTemplatesRequestParameters(disabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdateBrandingPhoneProviderRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdateBrandingPhoneProviderRequestContent.java index bf8583d48..1526c7a92 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdateBrandingPhoneProviderRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdateBrandingPhoneProviderRequestContent.java @@ -176,5 +176,15 @@ public UpdateBrandingPhoneProviderRequestContent build() { return new UpdateBrandingPhoneProviderRequestContent( name, disabled, credentials, configuration, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdatePhoneTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdatePhoneTemplateRequestContent.java index 3e19fd8f5..2e720a35c 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdatePhoneTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/phone/types/UpdatePhoneTemplateRequestContent.java @@ -123,5 +123,15 @@ public Builder disabled(Boolean disabled) { public UpdatePhoneTemplateRequestContent build() { return new UpdatePhoneTemplateRequestContent(content, disabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java index ccf342554..4016a847a 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/types/CreateBrandingThemeRequestContent.java @@ -149,6 +149,10 @@ public interface WidgetStage { public interface _FinalStage { CreateBrandingThemeRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Display Name

    */ @@ -248,5 +252,17 @@ public CreateBrandingThemeRequestContent build() { return new CreateBrandingThemeRequestContent( borders, colors, displayName, fonts, pageBackground, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java b/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java index 385409f0b..803699010 100644 --- a/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/branding/types/UpdateBrandingThemeRequestContent.java @@ -149,6 +149,10 @@ public interface WidgetStage { public interface _FinalStage { UpdateBrandingThemeRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Display Name

    */ @@ -248,5 +252,17 @@ public UpdateBrandingThemeRequestContent build() { return new UpdateBrandingThemeRequestContent( borders, colors, displayName, fonts, pageBackground, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncOrganizationsClient.java index 5d0796fdd..c51a51ca0 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncOrganizationsClient.java @@ -31,6 +31,10 @@ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( String id, ListClientGrantOrganizationsRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java index e5bc9afa3..2e1d44c67 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/AsyncRawOrganizationsClient.java @@ -46,6 +46,11 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListClientGrantOrganizationsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( String id, ListClientGrantOrganizationsRequestParameters request) { return list(id, request, null); @@ -63,6 +68,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/OrganizationsClient.java index a89f02ae5..fcf7aa1d1 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/OrganizationsClient.java @@ -30,6 +30,10 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + public SyncPagingIterable list(String id, ListClientGrantOrganizationsRequestParameters request) { return this.rawClient.list(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java index 8c134935f..1647c1136 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/RawOrganizationsClient.java @@ -41,6 +41,10 @@ public ManagementApiHttpResponse> list(String i return list(id, ListClientGrantOrganizationsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListClientGrantOrganizationsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( String id, ListClientGrantOrganizationsRequestParameters request) { return list(id, request, null); @@ -58,6 +62,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java index 265a509fe..489d33535 100644 --- a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListClientGrantOrganizationsRequestParameters build() { return new ListClientGrantOrganizationsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncConnectionsClient.java index 57aec09a9..a19fddd1f 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncConnectionsClient.java @@ -28,45 +28,60 @@ public AsyncRawConnectionsClient withRawResponse() { } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    + */ + public CompletableFuture> get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture> get(String id, ConnectionsGetRequest request) { return this.rawClient.get(id, request).thenApply(response -> response.body()); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture> get( String id, ConnectionsGetRequest request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncCredentialsClient.java index cf5d698b0..84ba1d4e7 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncCredentialsClient.java @@ -33,7 +33,7 @@ public AsyncRawCredentialsClient withRawResponse() { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture> list(String clientId) { return this.rawClient.list(clientId).thenApply(response -> response.body()); @@ -41,7 +41,7 @@ public CompletableFuture> list(String clientId) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture> list(String clientId, RequestOptions requestOptions) { return this.rawClient.list(clientId, requestOptions).thenApply(response -> response.body()); @@ -49,34 +49,34 @@ public CompletableFuture> list(String clientId, RequestOp /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public CompletableFuture create( String clientId, PostClientCredentialRequestContent request) { @@ -85,34 +85,34 @@ public CompletableFuture create( /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public CompletableFuture create( String clientId, PostClientCredentialRequestContent request, RequestOptions requestOptions) { @@ -121,7 +121,7 @@ public CompletableFuture create( /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture get(String clientId, String credentialId) { return this.rawClient.get(clientId, credentialId).thenApply(response -> response.body()); @@ -129,7 +129,7 @@ public CompletableFuture get(String clientId /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture get( String clientId, String credentialId, RequestOptions requestOptions) { @@ -137,28 +137,36 @@ public CompletableFuture get( } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture delete(String clientId, String credentialId) { return this.rawClient.delete(clientId, credentialId).thenApply(response -> response.body()); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture delete(String clientId, String credentialId, RequestOptions requestOptions) { return this.rawClient.delete(clientId, credentialId, requestOptions).thenApply(response -> response.body()); } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture update(String clientId, String credentialId) { return this.rawClient.update(clientId, credentialId).thenApply(response -> response.body()); } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. + */ + public CompletableFuture update( + String clientId, String credentialId, RequestOptions requestOptions) { + return this.rawClient.update(clientId, credentialId, requestOptions).thenApply(response -> response.body()); + } + + /** + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture update( String clientId, String credentialId, PatchClientCredentialRequestContent request) { @@ -166,7 +174,7 @@ public CompletableFuture update( } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture update( String clientId, diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java index 6c1227144..7f52b97ff 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawConnectionsClient.java @@ -43,30 +43,46 @@ public AsyncRawConnectionsClient(ClientOptions clientOptions) { } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture>> get(String id) { return get(id, ConnectionsGetRequest.builder().build()); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    + */ + public CompletableFuture>> get( + String id, RequestOptions requestOptions) { + return get(id, ConnectionsGetRequest.builder().build(), requestOptions); + } + + /** + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture>> get( String id, ConnectionsGetRequest request) { @@ -74,15 +90,15 @@ public CompletableFuture<ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public CompletableFuture>> get( String id, ConnectionsGetRequest request, RequestOptions requestOptions) { @@ -108,6 +124,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java index 796e86051..3347a88b2 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/AsyncRawCredentialsClient.java @@ -46,7 +46,7 @@ public AsyncRawCredentialsClient(ClientOptions clientOptions) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture>> list(String clientId) { return list(clientId, null); @@ -54,18 +54,22 @@ public CompletableFuture>> list /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture>> list( String clientId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) - .addPathSegments("credentials") - .build(); + .addPathSegments("credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -132,34 +136,34 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public CompletableFuture> create( String clientId, PostClientCredentialRequestContent request) { @@ -168,43 +172,47 @@ public CompletableFuture<h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public CompletableFuture> create( String clientId, PostClientCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) - .addPathSegments("credentials") - .build(); + .addPathSegments("credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -213,7 +221,7 @@ public CompletableFuture<b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture> get( String clientId, String credentialId) { @@ -296,19 +304,23 @@ public CompletableFuture<b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public CompletableFuture> get( String clientId, String credentialId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -375,26 +387,30 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture> delete(String clientId, String credentialId) { return delete(clientId, credentialId, null); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture> delete( String clientId, String credentialId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -457,7 +473,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture> update( String clientId, String credentialId) { @@ -468,7 +484,19 @@ public CompletableFutureClient Credential Flow. + */ + public CompletableFuture> update( + String clientId, String credentialId, RequestOptions requestOptions) { + return update( + clientId, + credentialId, + PatchClientCredentialRequestContent.builder().build(), + requestOptions); + } + + /** + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public CompletableFuture> update( String clientId, String credentialId, PatchClientCredentialRequestContent request) { @@ -476,20 +504,24 @@ public CompletableFutureClient Credential Flow. */ public CompletableFuture> update( String clientId, String credentialId, PatchClientCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -498,7 +530,7 @@ public CompletableFuture<ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public SyncPagingIterable get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    + */ + public SyncPagingIterable get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public SyncPagingIterable get(String id, ConnectionsGetRequest request) { return this.rawClient.get(id, request).body(); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public SyncPagingIterable get( String id, ConnectionsGetRequest request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/clients/CredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/CredentialsClient.java index 577201989..4c3ccbbc4 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/CredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/CredentialsClient.java @@ -32,7 +32,7 @@ public RawCredentialsClient withRawResponse() { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public List list(String clientId) { return this.rawClient.list(clientId).body(); @@ -40,7 +40,7 @@ public List list(String clientId) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public List list(String clientId, RequestOptions requestOptions) { return this.rawClient.list(clientId, requestOptions).body(); @@ -48,34 +48,34 @@ public List list(String clientId, RequestOptions requestOption /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public PostClientCredentialResponseContent create(String clientId, PostClientCredentialRequestContent request) { return this.rawClient.create(clientId, request).body(); @@ -83,34 +83,34 @@ public PostClientCredentialResponseContent create(String clientId, PostClientCre /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public PostClientCredentialResponseContent create( String clientId, PostClientCredentialRequestContent request, RequestOptions requestOptions) { @@ -119,7 +119,7 @@ public PostClientCredentialResponseContent create( /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public GetClientCredentialResponseContent get(String clientId, String credentialId) { return this.rawClient.get(clientId, credentialId).body(); @@ -127,35 +127,43 @@ public GetClientCredentialResponseContent get(String clientId, String credential /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public GetClientCredentialResponseContent get(String clientId, String credentialId, RequestOptions requestOptions) { return this.rawClient.get(clientId, credentialId, requestOptions).body(); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public void delete(String clientId, String credentialId) { this.rawClient.delete(clientId, credentialId).body(); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public void delete(String clientId, String credentialId, RequestOptions requestOptions) { this.rawClient.delete(clientId, credentialId, requestOptions).body(); } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public PatchClientCredentialResponseContent update(String clientId, String credentialId) { return this.rawClient.update(clientId, credentialId).body(); } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. + */ + public PatchClientCredentialResponseContent update( + String clientId, String credentialId, RequestOptions requestOptions) { + return this.rawClient.update(clientId, credentialId, requestOptions).body(); + } + + /** + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public PatchClientCredentialResponseContent update( String clientId, String credentialId, PatchClientCredentialRequestContent request) { @@ -163,7 +171,7 @@ public PatchClientCredentialResponseContent update( } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public PatchClientCredentialResponseContent update( String clientId, diff --git a/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java index c1ea7ded6..822bc0dd8 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/RawConnectionsClient.java @@ -38,30 +38,46 @@ public RawConnectionsClient(ClientOptions clientOptions) { } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public ManagementApiHttpResponse> get(String id) { return get(id, ConnectionsGetRequest.builder().build()); } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    + */ + public ManagementApiHttpResponse> get( + String id, RequestOptions requestOptions) { + return get(id, ConnectionsGetRequest.builder().build(), requestOptions); + } + + /** + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public ManagementApiHttpResponse> get( String id, ConnectionsGetRequest request) { @@ -69,15 +85,15 @@ public ManagementApiHttpResponse> get( } /** - * Retrieve all connections that are enabled for the specified <a href="https://www.auth0.com/docs/get-started/applications"> Application</a>, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. - *

    <ul> - * <li> - * This endpoint requires the <code>read:connections</code> scope and any one of <code>read:clients</code> or <code>read:client_summary</code>. - * </li> - * <li> - * <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining. - * </li> - * </ul>

    + * Retrieve all connections that are enabled for the specified Application, using checkpoint pagination. A list of fields to include or exclude for each connection may also be specified. + *

      + *
    • + * This endpoint requires the read:connections scope and any one of read:clients or read:client_summary. + *
    • + *
    • + * Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining. + *
    • + *

    */ public ManagementApiHttpResponse> get( String id, ConnectionsGetRequest request, RequestOptions requestOptions) { @@ -103,6 +119,11 @@ public ManagementApiHttpResponse> get( QueryStringMapper.addQueryParameter( httpUrl, "strategy", request.getStrategy().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java b/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java index fdeb4b0ed..cd4c448a6 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/clients/RawCredentialsClient.java @@ -42,7 +42,7 @@ public RawCredentialsClient(ClientOptions clientOptions) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public ManagementApiHttpResponse> list(String clientId) { return list(clientId, null); @@ -50,17 +50,21 @@ public ManagementApiHttpResponse> list(String clientId) { /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public ManagementApiHttpResponse> list(String clientId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) - .addPathSegments("credentials") - .build(); + .addPathSegments("credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -106,34 +110,34 @@ public ManagementApiHttpResponse> list(String clientId, R /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public ManagementApiHttpResponse create( String clientId, PostClientCredentialRequestContent request) { @@ -142,43 +146,47 @@ public ManagementApiHttpResponse create( /** * Create a client credential associated to your application. Credentials can be used to configure Private Key JWT and mTLS authentication methods, as well as for JWT-secured Authorization requests. - *

    <h5>Public Key</h5>Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    - *

    Sample: <pre><code>{ + *

    Public Key
    Public Key credentials can be used to set up Private Key JWT client authentication and JWT-secured Authorization requests.

    + *

    Sample:

    {
          * "credential_type": "public_key",
          * "name": "string",
          * "pem": "string",
          * "alg": "RS256",
          * "parse_expiry_from_cert": false,
          * "expires_at": "2022-12-31T23:59:59Z"
    -     * }</code></pre>

    - *

    <h5>Certificate (CA-signed & self-signed)</h5>Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    - *

    CA-signed Certificate Sample (pem): <pre><code>{ + * }

    + *

    Certificate (CA-signed & self-signed)
    Certificate credentials can be used to set up mTLS client authentication. CA-signed certificates can be configured either with a signed certificate or with just the certificate Subject DN.

    + *

    CA-signed Certificate Sample (pem):

    {
          * "credential_type": "x509_cert",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>CA-signed Certificate Sample (subject_dn): <pre><code>{
    +     * }
    CA-signed Certificate Sample (subject_dn):
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "subject_dn": "string"
    -     * }</code></pre>Self-signed Certificate Sample: <pre><code>{
    +     * }
    Self-signed Certificate Sample:
    {
          * "credential_type": "cert_subject_dn",
          * "name": "string",
          * "pem": "string"
    -     * }</code></pre>

    + * }

    *

    The credential will be created but not yet enabled for use until you set the corresponding properties in the client:

    - *

    <ul> - * <li>To enable the credential for Private Key JWT or mTLS authentication methods, set the <code>client_authentication_methods</code> property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-private-key-jwt">Configure Private Key JWT Authentication</a> and <a href="https://auth0.com/docs/get-started/applications/configure-mtls">Configure mTLS Authentication</a></li> - * <li>To enable the credential for JWT-secured Authorization requests, set the <code>signed_request_object</code>property on the client. For more information, read <a href="https://auth0.com/docs/get-started/applications/configure-jar">Configure JWT-secured Authorization Requests (JAR)</a></li> - * </ul>

    + *

    */ public ManagementApiHttpResponse create( String clientId, PostClientCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) - .addPathSegments("credentials") - .build(); + .addPathSegments("credentials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -187,7 +195,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -237,7 +245,7 @@ public ManagementApiHttpResponse create( /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public ManagementApiHttpResponse get(String clientId, String credentialId) { return get(clientId, credentialId, null); @@ -245,19 +253,23 @@ public ManagementApiHttpResponse get(String /** * Get the details of a client credential. - *

    <b>Important</b>: To enable credentials to be used for a client authentication method, set the <code>client_authentication_methods</code> property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the <code>signed_request_object</code> property on the client.

    + *

    Important: To enable credentials to be used for a client authentication method, set the client_authentication_methods property on the client. To enable credentials to be used for JWT-Secured Authorization requests set the signed_request_object property on the client.

    */ public ManagementApiHttpResponse get( String clientId, String credentialId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -302,25 +314,29 @@ public ManagementApiHttpResponse get( } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse delete(String clientId, String credentialId) { return delete(clientId, credentialId, null); } /** - * Delete a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Delete a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse delete(String clientId, String credentialId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -362,7 +378,7 @@ public ManagementApiHttpResponse delete(String clientId, String credential } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse update( String clientId, String credentialId) { @@ -373,7 +389,19 @@ public ManagementApiHttpResponse update( } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. + */ + public ManagementApiHttpResponse update( + String clientId, String credentialId, RequestOptions requestOptions) { + return update( + clientId, + credentialId, + PatchClientCredentialRequestContent.builder().build(), + requestOptions); + } + + /** + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse update( String clientId, String credentialId, PatchClientCredentialRequestContent request) { @@ -381,20 +409,24 @@ public ManagementApiHttpResponse update( } /** - * Change a client credential you previously created. May be enabled or disabled. For more information, read <a href="https://www.auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow">Client Credential Flow</a>. + * Change a client credential you previously created. May be enabled or disabled. For more information, read Client Credential Flow. */ public ManagementApiHttpResponse update( String clientId, String credentialId, PatchClientCredentialRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("clients") .addPathSegment(clientId) .addPathSegments("credentials") - .addPathSegment(credentialId) - .build(); + .addPathSegment(credentialId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -403,7 +435,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java b/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java index 59a09f896..755bb5d16 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java +++ b/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java @@ -99,7 +99,7 @@ public OptionalNullable getFields() { } /** - * @return <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>) + * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("include_fields") @@ -326,7 +326,7 @@ public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { } /** - *

    <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>)

    + *

    true if the fields specified are to be included in the result, false otherwise (defaults to true)

    */ @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) public Builder includeFields(@Nullable OptionalNullable includeFields) { @@ -362,5 +362,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public ConnectionsGetRequest build() { return new ConnectionsGetRequest(strategy, from, take, fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/PatchClientCredentialRequestContent.java b/src/main/java/com/auth0/client/mgmt/clients/types/PatchClientCredentialRequestContent.java index 170fe0ac7..adc2f9ba7 100644 --- a/src/main/java/com/auth0/client/mgmt/clients/types/PatchClientCredentialRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/clients/types/PatchClientCredentialRequestContent.java @@ -133,5 +133,15 @@ public Builder expiresAt(com.auth0.client.mgmt.core.Nullable exp public PatchClientCredentialRequestContent build() { return new PatchClientCredentialRequestContent(expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } 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 42aea8adf..074cdfd1f 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 @@ -161,6 +161,10 @@ public interface CredentialTypeStage { public interface _FinalStage { PostClientCredentialRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for a credential.

    */ @@ -359,5 +363,17 @@ public PostClientCredentialRequestContent build() { return new PostClientCredentialRequestContent( credentialType, name, subjectDn, pem, alg, parseExpiryFromCert, expiresAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncClientsClient.java index acef15c08..10817ae72 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncClientsClient.java @@ -30,16 +30,25 @@ public AsyncRawClientsClient withRawResponse() { } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture> get( String id, GetConnectionEnabledClientsRequestParameters request) { @@ -47,8 +56,8 @@ public CompletableFuture> get( } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture> get( String id, GetConnectionEnabledClientsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java index 75de74fe3..0b6d8631a 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncDirectoryProvisioningClient.java @@ -47,6 +47,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve a list of directory provisioning configurations of a tenant. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve a list of directory provisioning configurations of a tenant. */ @@ -84,6 +91,14 @@ public CompletableFuture create(Stri return this.rawClient.create(id).thenApply(response -> response.body()); } + /** + * Create a directory provisioning configuration for a connection. + */ + public CompletableFuture create( + String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + /** * Create a directory provisioning configuration for a connection. */ @@ -123,6 +138,14 @@ public CompletableFuture update(Stri return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update the directory provisioning configuration of a connection. + */ + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update the directory provisioning configuration of a connection. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java index 6bfc0677d..81e274dd3 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncKeysClient.java @@ -50,6 +50,13 @@ public CompletableFuture rotate(String id) return this.rawClient.rotate(id).thenApply(response -> response.body()); } + /** + * Rotates the connection keys for the Okta or OIDC connection strategies. + */ + public CompletableFuture rotate(String id, RequestOptions requestOptions) { + return this.rawClient.rotate(id, requestOptions).thenApply(response -> response.body()); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java index ff1ba7f53..f9dd8ae74 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawClientsClient.java @@ -46,16 +46,25 @@ public AsyncRawClientsClient(ClientOptions clientOptions) { } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture>> get(String id) { return get(id, GetConnectionEnabledClientsRequestParameters.builder().build()); } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    + */ + public CompletableFuture>> get( + String id, RequestOptions requestOptions) { + return get(id, GetConnectionEnabledClientsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture>> get( String id, GetConnectionEnabledClientsRequestParameters request) { @@ -63,8 +72,8 @@ public CompletableFuture<b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public CompletableFuture>> get( String id, GetConnectionEnabledClientsRequestParameters request, RequestOptions requestOptions) { @@ -78,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,12 +188,16 @@ public CompletableFuture> update( public CompletableFuture> update( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("clients") - .build(); + .addPathSegments("clients"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -188,7 +206,7 @@ public CompletableFuture> update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java index c117f49b0..1ecb13356 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawDirectoryProvisioningClient.java @@ -59,6 +59,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListDirectoryProvisioningsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of directory provisioning configurations of a tenant. */ @@ -80,6 +88,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -176,14 +189,18 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -261,6 +278,14 @@ public CompletableFutureabsent()); } + /** + * Create a directory provisioning configuration for a connection. + */ + public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + /** * Create a directory provisioning configuration for a connection. */ @@ -276,12 +301,16 @@ public CompletableFuture request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -293,7 +322,7 @@ public CompletableFuture> delete(String id) { * Delete the directory provisioning configuration of a connection. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -462,6 +495,14 @@ public CompletableFutureabsent()); } + /** + * Update the directory provisioning configuration of a connection. + */ + public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, OptionalNullable.absent(), requestOptions); + } + /** * Update the directory provisioning configuration of a connection. */ @@ -477,12 +518,16 @@ public CompletableFuture request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -494,7 +539,7 @@ public CompletableFuture> getDefaultMapping(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("directory-provisioning") - .addPathSegments("default-mapping") - .build(); + .addPathSegments("default-mapping"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java index 6e6eab192..8b2cc1994 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawKeysClient.java @@ -54,14 +54,18 @@ public CompletableFuture>> get(Str */ public CompletableFuture>> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("keys") - .build(); + .addPathSegments("keys"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -138,6 +142,14 @@ public CompletableFutureabsent()); } + /** + * Rotates the connection keys for the Okta or OIDC connection strategies. + */ + public CompletableFuture> rotate( + String id, RequestOptions requestOptions) { + return rotate(id, OptionalNullable.absent(), requestOptions); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ @@ -151,13 +163,17 @@ public CompletableFuture> rotate( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("keys") - .addPathSegments("rotate") - .build(); + .addPathSegments("rotate"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -169,7 +185,7 @@ public CompletableFutureconnectionId. */ public CompletableFuture> get(String id) { return get(id, null); } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -122,6 +126,14 @@ public CompletableFutureabsent()); } + /** + * Create a scim configuration for a connection. + */ + public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + /** * Create a scim configuration for a connection. */ @@ -135,12 +147,16 @@ public CompletableFuture> create( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -152,7 +168,7 @@ public CompletableFutureconnectionId. */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -280,7 +300,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public CompletableFuture> update( String id, UpdateScimConfigurationRequestContent request) { @@ -288,16 +308,20 @@ public CompletableFutureconnectionId. */ public CompletableFuture> update( String id, UpdateScimConfigurationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -306,7 +330,7 @@ public CompletableFutureconnectionId. */ public CompletableFuture> getDefaultMapping(String id) { @@ -372,19 +396,23 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public CompletableFuture> getDefaultMapping(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("default-mapping") - .build(); + .addPathSegments("default-mapping"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java index 8c1f46ff5..df5b672a2 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncRawUsersClient.java @@ -54,6 +54,11 @@ public CompletableFuture> deleteByEmail( .addPathSegment(id) .addPathSegments("users"); QueryStringMapper.addQueryParameter(httpUrl, "email", request.getEmail(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) diff --git a/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java index 25033a5d1..f05c008ed 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/AsyncScimConfigurationClient.java @@ -38,14 +38,14 @@ public AsyncRawScimConfigurationClient withRawResponse() { } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public CompletableFuture get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public CompletableFuture get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -58,6 +58,13 @@ public CompletableFuture create(String i return this.rawClient.create(id).thenApply(response -> response.body()); } + /** + * Create a scim configuration for a connection. + */ + public CompletableFuture create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + /** * Create a scim configuration for a connection. */ @@ -75,21 +82,21 @@ public CompletableFuture create( } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public CompletableFuture update( String id, UpdateScimConfigurationRequestContent request) { @@ -97,7 +104,7 @@ public CompletableFuture update( } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public CompletableFuture update( String id, UpdateScimConfigurationRequestContent request, RequestOptions requestOptions) { @@ -105,14 +112,14 @@ public CompletableFuture update( } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public CompletableFuture getDefaultMapping(String id) { return this.rawClient.getDefaultMapping(id).thenApply(response -> response.body()); } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public CompletableFuture getDefaultMapping( String id, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/ClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/ClientsClient.java index 3cde8a29f..5220513b4 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/ClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/ClientsClient.java @@ -29,16 +29,24 @@ public RawClientsClient withRawResponse() { } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public SyncPagingIterable get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    + */ + public SyncPagingIterable get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + + /** + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public SyncPagingIterable get( String id, GetConnectionEnabledClientsRequestParameters request) { @@ -46,8 +54,8 @@ public SyncPagingIterable get( } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public SyncPagingIterable get( String id, GetConnectionEnabledClientsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java index 8acf645d7..cbfb76728 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/DirectoryProvisioningClient.java @@ -46,6 +46,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve a list of directory provisioning configurations of a tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve a list of directory provisioning configurations of a tenant. */ @@ -82,6 +89,13 @@ public CreateDirectoryProvisioningResponseContent create(String id) { return this.rawClient.create(id).body(); } + /** + * Create a directory provisioning configuration for a connection. + */ + public CreateDirectoryProvisioningResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + /** * Create a directory provisioning configuration for a connection. */ @@ -121,6 +135,13 @@ public UpdateDirectoryProvisioningResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update the directory provisioning configuration of a connection. + */ + public UpdateDirectoryProvisioningResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update the directory provisioning configuration of a connection. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java index 248b5a68c..9f41240b3 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/KeysClient.java @@ -49,6 +49,13 @@ public RotateConnectionsKeysResponseContent rotate(String id) { return this.rawClient.rotate(id).body(); } + /** + * Rotates the connection keys for the Okta or OIDC connection strategies. + */ + public RotateConnectionsKeysResponseContent rotate(String id, RequestOptions requestOptions) { + return this.rawClient.rotate(id, requestOptions).body(); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java index f9426f034..8108c49f8 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawClientsClient.java @@ -41,16 +41,25 @@ public RawClientsClient(ClientOptions clientOptions) { } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public ManagementApiHttpResponse> get(String id) { return get(id, GetConnectionEnabledClientsRequestParameters.builder().build()); } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    + */ + public ManagementApiHttpResponse> get( + String id, RequestOptions requestOptions) { + return get(id, GetConnectionEnabledClientsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public ManagementApiHttpResponse> get( String id, GetConnectionEnabledClientsRequestParameters request) { @@ -58,8 +67,8 @@ public ManagementApiHttpResponse> ge } /** - * Retrieve all clients that have the specified <a href="https://auth0.com/docs/authenticate/identity-providers">connection</a> enabled. - *

    <b>Note</b>: The first time you call this endpoint, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no further results are remaining.

    + * Retrieve all clients that have the specified connection enabled. + *

    Note: The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

    */ public ManagementApiHttpResponse> get( String id, GetConnectionEnabledClientsRequestParameters request, RequestOptions requestOptions) { @@ -73,6 +82,11 @@ public ManagementApiHttpResponse> ge QueryStringMapper.addQueryParameter( httpUrl, "from", request.getFrom().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -139,12 +153,16 @@ public ManagementApiHttpResponse update( public ManagementApiHttpResponse update( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("clients") - .build(); + .addPathSegments("clients"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -153,7 +171,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java index 794586fa2..a3a29663b 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawDirectoryProvisioningClient.java @@ -54,6 +54,13 @@ public ManagementApiHttpResponse> list return list(ListDirectoryProvisioningsRequestParameters.builder().build()); } + /** + * Retrieve a list of directory provisioning configurations of a tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListDirectoryProvisioningsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve a list of directory provisioning configurations of a tenant. */ @@ -75,6 +82,11 @@ public ManagementApiHttpResponse> list httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -143,14 +155,18 @@ public ManagementApiHttpResponse get(St */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -204,6 +220,14 @@ public ManagementApiHttpResponse cre return create(id, OptionalNullable.absent()); } + /** + * Create a directory provisioning configuration for a connection. + */ + public ManagementApiHttpResponse create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + /** * Create a directory provisioning configuration for a connection. */ @@ -219,12 +243,16 @@ public ManagementApiHttpResponse cre String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -236,7 +264,7 @@ public ManagementApiHttpResponse cre throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -298,14 +326,18 @@ public ManagementApiHttpResponse delete(String id) { * Delete the directory provisioning configuration of a connection. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -356,6 +388,14 @@ public ManagementApiHttpResponse upd return update(id, OptionalNullable.absent()); } + /** + * Update the directory provisioning configuration of a connection. + */ + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, OptionalNullable.absent(), requestOptions); + } + /** * Update the directory provisioning configuration of a connection. */ @@ -371,12 +411,16 @@ public ManagementApiHttpResponse upd String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("directory-provisioning") - .build(); + .addPathSegments("directory-provisioning"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -388,7 +432,7 @@ public ManagementApiHttpResponse upd throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -449,15 +493,19 @@ public ManagementApiHttpResponse getDefaultMapping( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("directory-provisioning") - .addPathSegments("default-mapping") - .build(); + .addPathSegments("default-mapping"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java index 379455dad..c1f436fa4 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawKeysClient.java @@ -49,14 +49,18 @@ public ManagementApiHttpResponse> get(String id) { * Gets the connection keys for the Okta or OIDC connection strategy. */ public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("keys") - .build(); + .addPathSegments("keys"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -110,6 +114,14 @@ public ManagementApiHttpResponse rotate(St return rotate(id, OptionalNullable.absent()); } + /** + * Rotates the connection keys for the Okta or OIDC connection strategies. + */ + public ManagementApiHttpResponse rotate( + String id, RequestOptions requestOptions) { + return rotate(id, OptionalNullable.absent(), requestOptions); + } + /** * Rotates the connection keys for the Okta or OIDC connection strategies. */ @@ -123,13 +135,17 @@ public ManagementApiHttpResponse rotate( */ public ManagementApiHttpResponse rotate( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("keys") - .addPathSegments("rotate") - .build(); + .addPathSegments("rotate"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -141,7 +157,7 @@ public ManagementApiHttpResponse rotate( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java index bc2d8ecc6..f0a2c3811 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawScimConfigurationClient.java @@ -37,25 +37,29 @@ public RawScimConfigurationClient(ClientOptions clientOptions) { } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public ManagementApiHttpResponse get(String id) { return get(id, null); } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -100,6 +104,14 @@ public ManagementApiHttpResponse create( return create(id, OptionalNullable.absent()); } + /** + * Create a scim configuration for a connection. + */ + public ManagementApiHttpResponse create( + String id, RequestOptions requestOptions) { + return create(id, OptionalNullable.absent(), requestOptions); + } + /** * Create a scim configuration for a connection. */ @@ -113,12 +125,16 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( String id, OptionalNullable request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create("", null); @@ -130,7 +146,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -170,24 +186,28 @@ public ManagementApiHttpResponse create( } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -223,7 +243,7 @@ public ManagementApiHttpResponse delete(String id, RequestOptions requestO } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public ManagementApiHttpResponse update( String id, UpdateScimConfigurationRequestContent request) { @@ -231,16 +251,20 @@ public ManagementApiHttpResponse update( } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public ManagementApiHttpResponse update( String id, UpdateScimConfigurationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) - .addPathSegments("scim-configuration") - .build(); + .addPathSegments("scim-configuration"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -249,7 +273,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -289,26 +313,30 @@ public ManagementApiHttpResponse update( } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public ManagementApiHttpResponse getDefaultMapping(String id) { return getDefaultMapping(id, null); } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public ManagementApiHttpResponse getDefaultMapping( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("default-mapping") - .build(); + .addPathSegments("default-mapping"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java index 40d1bba27..18419dfb1 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/RawUsersClient.java @@ -50,6 +50,11 @@ public ManagementApiHttpResponse deleteByEmail( .addPathSegment(id) .addPathSegments("users"); QueryStringMapper.addQueryParameter(httpUrl, "email", request.getEmail(), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("DELETE", null) diff --git a/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java b/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java index f4b9bd602..1d5d6e217 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/ScimConfigurationClient.java @@ -37,14 +37,14 @@ public RawScimConfigurationClient withRawResponse() { } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public GetScimConfigurationResponseContent get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieves a scim configuration by its <code>connectionId</code>. + * Retrieves a scim configuration by its connectionId. */ public GetScimConfigurationResponseContent get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -57,6 +57,13 @@ public CreateScimConfigurationResponseContent create(String id) { return this.rawClient.create(id).body(); } + /** + * Create a scim configuration for a connection. + */ + public CreateScimConfigurationResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + /** * Create a scim configuration for a connection. */ @@ -74,28 +81,28 @@ public CreateScimConfigurationResponseContent create( } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Deletes a scim configuration by its <code>connectionId</code>. + * Deletes a scim configuration by its connectionId. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public UpdateScimConfigurationResponseContent update(String id, UpdateScimConfigurationRequestContent request) { return this.rawClient.update(id, request).body(); } /** - * Update a scim configuration by its <code>connectionId</code>. + * Update a scim configuration by its connectionId. */ public UpdateScimConfigurationResponseContent update( String id, UpdateScimConfigurationRequestContent request, RequestOptions requestOptions) { @@ -103,14 +110,14 @@ public UpdateScimConfigurationResponseContent update( } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public GetScimConfigurationDefaultMappingResponseContent getDefaultMapping(String id) { return this.rawClient.getDefaultMapping(id).body(); } /** - * Retrieves a scim configuration's default mapping by its <code>connectionId</code>. + * Retrieves a scim configuration's default mapping by its connectionId. */ public GetScimConfigurationDefaultMappingResponseContent getDefaultMapping( String id, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java index 4e26fd082..12284e19c 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/AsyncRawSynchronizationsClient.java @@ -50,15 +50,19 @@ public CompletableFuture> create( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("directory-provisioning") - .addPathSegments("synchronizations") - .build(); + .addPathSegments("synchronizations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java index 9348ab59d..966d64c97 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/directoryprovisioning/RawSynchronizationsClient.java @@ -45,15 +45,19 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse create( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("directory-provisioning") - .addPathSegments("synchronizations") - .build(); + .addPathSegments("synchronizations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java index 7a5153496..aa3802584 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncRawTokensClient.java @@ -40,26 +40,30 @@ public AsyncRawTokensClient(ClientOptions clientOptions) { } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public CompletableFuture>> get(String id) { return get(id, null); } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public CompletableFuture>> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("tokens") - .build(); + .addPathSegments("tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -121,6 +125,14 @@ public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create(id, CreateScimTokenRequestContent.builder().build(), requestOptions); + } + /** * Create a scim token for a scim client. */ @@ -134,13 +146,17 @@ public CompletableFuture> create( String id, CreateScimTokenRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("tokens") - .build(); + .addPathSegments("tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -149,7 +165,7 @@ public CompletableFutureid and tokenId. */ public CompletableFuture> delete(String id, String tokenId) { return delete(id, tokenId, null); } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public CompletableFuture> delete( String id, String tokenId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration/tokens") - .addPathSegment(tokenId) - .build(); + .addPathSegment(tokenId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncTokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncTokensClient.java index 5f3857162..ef3baa451 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/AsyncTokensClient.java @@ -29,14 +29,14 @@ public AsyncRawTokensClient withRawResponse() { } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public CompletableFuture> get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); @@ -49,6 +49,13 @@ public CompletableFuture create(String id) { return this.rawClient.create(id).thenApply(response -> response.body()); } + /** + * Create a scim token for a scim client. + */ + public CompletableFuture create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + /** * Create a scim token for a scim client. */ @@ -65,14 +72,14 @@ public CompletableFuture create( } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public CompletableFuture delete(String id, String tokenId) { return this.rawClient.delete(id, tokenId).thenApply(response -> response.body()); } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public CompletableFuture delete(String id, String tokenId, RequestOptions requestOptions) { return this.rawClient.delete(id, tokenId, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java index 3d7541e32..2d587423e 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/RawTokensClient.java @@ -36,25 +36,29 @@ public RawTokensClient(ClientOptions clientOptions) { } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public ManagementApiHttpResponse> get(String id) { return get(id, null); } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("tokens") - .build(); + .addPathSegments("tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -99,6 +103,13 @@ public ManagementApiHttpResponse create(String i return create(id, CreateScimTokenRequestContent.builder().build()); } + /** + * Create a scim token for a scim client. + */ + public ManagementApiHttpResponse create(String id, RequestOptions requestOptions) { + return create(id, CreateScimTokenRequestContent.builder().build(), requestOptions); + } + /** * Create a scim token for a scim client. */ @@ -112,13 +123,17 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( String id, CreateScimTokenRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration") - .addPathSegments("tokens") - .build(); + .addPathSegments("tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -127,7 +142,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -169,25 +184,29 @@ public ManagementApiHttpResponse create( } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public ManagementApiHttpResponse delete(String id, String tokenId) { return delete(id, tokenId, null); } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public ManagementApiHttpResponse delete(String id, String tokenId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("connections") .addPathSegment(id) .addPathSegments("scim-configuration/tokens") - .addPathSegment(tokenId) - .build(); + .addPathSegment(tokenId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/TokensClient.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/TokensClient.java index 8db9256aa..98fe90d1d 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/TokensClient.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/TokensClient.java @@ -28,14 +28,14 @@ public RawTokensClient withRawResponse() { } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public List get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieves all scim tokens by its connection <code>id</code>. + * Retrieves all scim tokens by its connection id. */ public List get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); @@ -48,6 +48,13 @@ public CreateScimTokenResponseContent create(String id) { return this.rawClient.create(id).body(); } + /** + * Create a scim token for a scim client. + */ + public CreateScimTokenResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + /** * Create a scim token for a scim client. */ @@ -64,14 +71,14 @@ public CreateScimTokenResponseContent create( } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public void delete(String id, String tokenId) { this.rawClient.delete(id, tokenId).body(); } /** - * Deletes a scim token by its connection <code>id</code> and <code>tokenId</code>. + * Deletes a scim token by its connection id and tokenId. */ public void delete(String id, String tokenId, RequestOptions requestOptions) { this.rawClient.delete(id, tokenId, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/types/CreateScimTokenRequestContent.java b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/types/CreateScimTokenRequestContent.java index dadd47f4f..dcd8148bd 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/types/CreateScimTokenRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/connections/scimconfiguration/types/CreateScimTokenRequestContent.java @@ -162,5 +162,15 @@ public Builder tokenLifetime(com.auth0.client.mgmt.core.Nullable tokenL public CreateScimTokenRequestContent build() { return new CreateScimTokenRequestContent(scopes, tokenLifetime, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java index b211900f5..da34d69b5 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/DeleteConnectionUsersByEmailQueryParameters.java @@ -77,6 +77,10 @@ public interface EmailStage { public interface _FinalStage { DeleteConnectionUsersByEmailQueryParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage email(@NotNull String email) { public DeleteConnectionUsersByEmailQueryParameters build() { return new DeleteConnectionUsersByEmailQueryParameters(email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java index 5a8350257..f203ef6e8 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java @@ -181,5 +181,15 @@ public Builder from(Nullable from) { public GetConnectionEnabledClientsRequestParameters build() { return new GetConnectionEnabledClientsRequestParameters(take, from, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java index c2f5a05b3..d6c9d893d 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListDirectoryProvisioningsRequestParameters build() { return new ListDirectoryProvisioningsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java b/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java index cea97bfcb..a7dfe6aae 100644 --- a/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/connections/types/UpdateScimConfigurationRequestContent.java @@ -94,6 +94,10 @@ public interface UserIdAttributeStage { public interface _FinalStage { UpdateScimConfigurationRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between auth0 and SCIM

    */ @@ -173,5 +177,17 @@ public _FinalStage mapping(List mapping) { public UpdateScimConfigurationRequestContent build() { return new UpdateScimConfigurationRequestContent(userIdAttribute, mapping, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/core/SseEvent.java b/src/main/java/com/auth0/client/mgmt/core/SseEvent.java new file mode 100644 index 000000000..1d290dc53 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/core/SseEvent.java @@ -0,0 +1,114 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.core; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Objects; +import java.util.Optional; + +/** + * Represents a Server-Sent Event with all standard fields. + * Used for event-level discrimination where the discriminator is at the SSE envelope level. + * + * @param The type of the data field + */ +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonIgnoreProperties(ignoreUnknown = true) +public final class SseEvent { + private final String event; + private final T data; + private final String id; + private final Long retry; + + private SseEvent(String event, T data, String id, Long retry) { + this.event = event; + this.data = data; + this.id = id; + this.retry = retry; + } + + @JsonProperty("event") + public Optional getEvent() { + return Optional.ofNullable(event); + } + + @JsonProperty("data") + public T getData() { + return data; + } + + @JsonProperty("id") + public Optional getId() { + return Optional.ofNullable(id); + } + + @JsonProperty("retry") + public Optional getRetry() { + return Optional.ofNullable(retry); + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SseEvent sseEvent = (SseEvent) o; + return Objects.equals(event, sseEvent.event) + && Objects.equals(data, sseEvent.data) + && Objects.equals(id, sseEvent.id) + && Objects.equals(retry, sseEvent.retry); + } + + @Override + public int hashCode() { + return Objects.hash(event, data, id, retry); + } + + @Override + public String toString() { + return "SseEvent{" + "event='" + + event + '\'' + ", data=" + + data + ", id='" + + id + '\'' + ", retry=" + + retry + '}'; + } + + public static Builder builder() { + return new Builder<>(); + } + + public static final class Builder { + private String event; + private T data; + private String id; + private Long retry; + + private Builder() {} + + public Builder event(String event) { + this.event = event; + return this; + } + + public Builder data(T data) { + this.data = data; + return this; + } + + public Builder id(String id) { + this.id = id; + return this; + } + + public Builder retry(Long retry) { + this.retry = retry; + return this; + } + + public SseEvent build() { + return new SseEvent<>(event, data, id, retry); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/core/SseEventParser.java b/src/main/java/com/auth0/client/mgmt/core/SseEventParser.java new file mode 100644 index 000000000..9badb0bec --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/core/SseEventParser.java @@ -0,0 +1,228 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.core; + +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.reflect.Field; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Optional; +import java.util.Set; + +/** + * Utility class for parsing Server-Sent Events with support for discriminated unions. + *

    + * Handles two discrimination patterns: + *

      + *
    1. Data-level discrimination: The discriminator (e.g., 'type') is inside the JSON data payload. + * Jackson's polymorphic deserialization handles this automatically.
    2. + *
    3. Event-level discrimination: The discriminator (e.g., 'event') is at the SSE envelope level. + * This requires constructing the full SSE envelope for Jackson to process.
    4. + *
    + */ +public final class SseEventParser { + + private static final Set SSE_ENVELOPE_FIELDS = new HashSet<>(Arrays.asList("event", "data", "id", "retry")); + + private SseEventParser() { + // Utility class + } + + /** + * Parse an SSE event using event-level discrimination. + *

    + * Constructs the full SSE envelope object with event, data, id, and retry fields, + * then deserializes it to the target union type. + * + * @param eventType The SSE event type (from event: field) + * @param data The SSE data content (from data: field) + * @param id The SSE event ID (from id: field), may be null + * @param retry The SSE retry value (from retry: field), may be null + * @param unionClass The target union class + * @param discriminatorProperty The property name used for discrimination (e.g., "event") + * @param The target type + * @return The deserialized object + */ + public static T parseEventLevelUnion( + String eventType, String data, String id, Long retry, Class unionClass, String discriminatorProperty) { + try { + // Determine if data should be parsed as JSON based on the variant's expected type + Object parsedData = parseDataForVariant(eventType, data, unionClass, discriminatorProperty); + + // Construct the SSE envelope object + Map envelope = new HashMap<>(); + envelope.put(discriminatorProperty, eventType); + envelope.put("data", parsedData); + if (id != null) { + envelope.put("id", id); + } + if (retry != null) { + envelope.put("retry", retry); + } + + // Serialize to JSON and deserialize to target type + String envelopeJson = ObjectMappers.JSON_MAPPER.writeValueAsString(envelope); + return ObjectMappers.JSON_MAPPER.readValue(envelopeJson, unionClass); + } catch (Exception e) { + throw new RuntimeException("Failed to parse SSE event with event-level discrimination", e); + } + } + + /** + * Parse an SSE event using data-level discrimination. + *

    + * Simply parses the data field as JSON and deserializes it to the target type. + * Jackson's polymorphic deserialization handles the discrimination automatically. + * + * @param data The SSE data content (from data: field) + * @param valueType The target type + * @param The target type + * @return The deserialized object + */ + public static T parseDataLevelUnion(String data, Class valueType) { + try { + return ObjectMappers.JSON_MAPPER.readValue(data, valueType); + } catch (Exception e) { + throw new RuntimeException("Failed to parse SSE data with data-level discrimination", e); + } + } + + /** + * Determines if the given discriminator property indicates event-level discrimination. + * Event-level discrimination occurs when the discriminator is an SSE envelope field. + * + * @param discriminatorProperty The discriminator property name + * @return true if event-level discrimination, false otherwise + */ + public static boolean isEventLevelDiscrimination(String discriminatorProperty) { + return SSE_ENVELOPE_FIELDS.contains(discriminatorProperty); + } + + /** + * Attempts to find the discriminator property from the union class's Jackson annotations. + * + * @param unionClass The union class to inspect + * @return The discriminator property name, or empty if not found + */ + public static Optional findDiscriminatorProperty(Class unionClass) { + try { + // Look for JsonTypeInfo on the class itself + JsonTypeInfo typeInfo = unionClass.getAnnotation(JsonTypeInfo.class); + if (typeInfo != null && !typeInfo.property().isEmpty()) { + return Optional.of(typeInfo.property()); + } + + // Look for inner Value interface with JsonTypeInfo + for (Class innerClass : unionClass.getDeclaredClasses()) { + typeInfo = innerClass.getAnnotation(JsonTypeInfo.class); + if (typeInfo != null && !typeInfo.property().isEmpty()) { + return Optional.of(typeInfo.property()); + } + } + } catch (Exception e) { + // Ignore reflection errors + } + return Optional.empty(); + } + + /** + * Parse the data field based on what the matching variant expects. + * If the variant expects a String for its data field, returns the raw string. + * Otherwise, parses the data as JSON. + */ + private static Object parseDataForVariant( + String eventType, String data, Class unionClass, String discriminatorProperty) { + if (data == null || data.isEmpty()) { + return data; + } + + try { + // Try to find the variant class that matches this event type + Class variantClass = findVariantClass(unionClass, eventType, discriminatorProperty); + if (variantClass != null) { + // Check if the variant expects a String for the data field + Field dataField = findField(variantClass, "data"); + if (dataField != null && String.class.equals(dataField.getType())) { + // Variant expects String - return raw data + return data; + } + } + + // Try to parse as JSON + return ObjectMappers.JSON_MAPPER.readValue(data, new TypeReference>() {}); + } catch (Exception e) { + // If JSON parsing fails, return as string + return data; + } + } + + /** + * Find the variant class that matches the given discriminator value. + */ + private static Class findVariantClass( + Class unionClass, String discriminatorValue, String discriminatorProperty) { + try { + // Look for JsonSubTypes annotation + JsonSubTypes subTypes = findJsonSubTypes(unionClass); + if (subTypes == null) { + return null; + } + + for (JsonSubTypes.Type subType : subTypes.value()) { + JsonTypeName typeName = subType.value().getAnnotation(JsonTypeName.class); + if (typeName != null && typeName.value().equals(discriminatorValue)) { + return subType.value(); + } + // Also check the name attribute of @JsonSubTypes.Type + if (subType.name().equals(discriminatorValue)) { + return subType.value(); + } + } + } catch (Exception e) { + // Ignore reflection errors + } + return null; + } + + /** + * Find JsonSubTypes annotation on the class or its inner classes. + */ + private static JsonSubTypes findJsonSubTypes(Class unionClass) { + // Check the class itself + JsonSubTypes subTypes = unionClass.getAnnotation(JsonSubTypes.class); + if (subTypes != null) { + return subTypes; + } + + // Check inner classes (for Fern-style unions with inner Value interface) + for (Class innerClass : unionClass.getDeclaredClasses()) { + subTypes = innerClass.getAnnotation(JsonSubTypes.class); + if (subTypes != null) { + return subTypes; + } + } + return null; + } + + /** + * Find a field by name in a class, including private fields. + */ + private static Field findField(Class clazz, String fieldName) { + try { + return clazz.getDeclaredField(fieldName); + } catch (NoSuchFieldException e) { + // Check superclass + Class superClass = clazz.getSuperclass(); + if (superClass != null && superClass != Object.class) { + return findField(superClass, fieldName); + } + return null; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/core/Stream.java b/src/main/java/com/auth0/client/mgmt/core/Stream.java index c2d438973..e17919b91 100644 --- a/src/main/java/com/auth0/client/mgmt/core/Stream.java +++ b/src/main/java/com/auth0/client/mgmt/core/Stream.java @@ -28,7 +28,8 @@ public final class Stream implements Iterable, Closeable { public enum StreamType { JSON, - SSE + SSE, + SSE_EVENT_DISCRIMINATED } private final Class valueType; @@ -37,6 +38,7 @@ public enum StreamType { private final String messageTerminator; private final String streamTerminator; private final Reader sseReader; + private final String discriminatorProperty; private boolean isClosed = false; /** @@ -53,11 +55,18 @@ public Stream(Class valueType, Reader reader, String delimiter) { this.messageTerminator = delimiter; this.streamTerminator = null; this.sseReader = null; + this.discriminatorProperty = null; } private Stream(Class valueType, StreamType type, Reader reader, String terminator) { + this(valueType, type, reader, terminator, null); + } + + private Stream( + Class valueType, StreamType type, Reader reader, String terminator, String discriminatorProperty) { this.valueType = valueType; this.streamType = type; + this.discriminatorProperty = discriminatorProperty; if (type == StreamType.JSON) { this.scanner = new Scanner(reader).useDelimiter(terminator); this.messageTerminator = terminator; @@ -87,6 +96,38 @@ public static Stream fromSse(Class valueType, Reader sseReader, String return new Stream<>(valueType, StreamType.SSE, sseReader, streamTerminator); } + /** + * Creates a stream from SSE data with event-level discrimination support. + * Use this when the SSE payload is a discriminated union where the discriminator + * is an SSE envelope field (e.g., 'event'). + * + * @param valueType The class of the objects in the stream. + * @param sseReader The reader that provides the SSE data. + * @param discriminatorProperty The property name used for discrimination (e.g., "event"). + * @param The type of objects in the stream. + * @return A new Stream instance configured for SSE with event-level discrimination. + */ + public static Stream fromSseWithEventDiscrimination( + Class valueType, Reader sseReader, String discriminatorProperty) { + return new Stream<>(valueType, StreamType.SSE_EVENT_DISCRIMINATED, sseReader, null, discriminatorProperty); + } + + /** + * Creates a stream from SSE data with event-level discrimination support and a stream terminator. + * + * @param valueType The class of the objects in the stream. + * @param sseReader The reader that provides the SSE data. + * @param discriminatorProperty The property name used for discrimination (e.g., "event"). + * @param streamTerminator The terminator string that signals end of stream (e.g., "[DONE]"). + * @param The type of objects in the stream. + * @return A new Stream instance configured for SSE with event-level discrimination. + */ + public static Stream fromSseWithEventDiscrimination( + Class valueType, Reader sseReader, String discriminatorProperty, String streamTerminator) { + return new Stream<>( + valueType, StreamType.SSE_EVENT_DISCRIMINATED, sseReader, streamTerminator, discriminatorProperty); + } + @Override public void close() throws IOException { if (!isClosed) { @@ -112,10 +153,14 @@ private boolean isStreamClosed() { */ @Override public Iterator iterator() { - if (streamType == StreamType.SSE) { - return new SSEIterator(); - } else { - return new JsonIterator(); + switch (streamType) { + case SSE: + return new SSEIterator(); + case SSE_EVENT_DISCRIMINATED: + return new SSEEventDiscriminatedIterator(); + case JSON: + default: + return new JsonIterator(); } } @@ -299,4 +344,170 @@ private boolean readNextMessage() { } } } + + /** + * Iterator for SSE streams with event-level discrimination. + * Uses SseEventParser to construct the full SSE envelope for Jackson deserialization. + */ + private final class SSEEventDiscriminatedIterator implements Iterator { + private Scanner sseScanner; + private T nextItem; + private boolean hasNextItem = false; + private boolean endOfStream = false; + private StringBuilder eventDataBuffer = new StringBuilder(); + private String currentEventType = null; + private String currentEventId = null; + private Long currentRetry = null; + + private SSEEventDiscriminatedIterator() { + if (sseReader != null && !isStreamClosed()) { + this.sseScanner = new Scanner(sseReader); + } else { + this.endOfStream = true; + } + } + + @Override + public boolean hasNext() { + if (isStreamClosed() || endOfStream) { + return false; + } + + if (hasNextItem) { + return true; + } + + return readNextMessage(); + } + + @Override + public T next() { + if (!hasNext()) { + throw new NoSuchElementException("No more elements in stream"); + } + + T result = nextItem; + nextItem = null; + hasNextItem = false; + return result; + } + + @Override + public void remove() { + throw new UnsupportedOperationException(); + } + + private boolean readNextMessage() { + if (sseScanner == null || isStreamClosed()) { + endOfStream = true; + return false; + } + + try { + while (sseScanner.hasNextLine()) { + String line = sseScanner.nextLine(); + + if (line.trim().isEmpty()) { + if (eventDataBuffer.length() > 0 || currentEventType != null) { + try { + // Use SseEventParser for event-level discrimination + nextItem = SseEventParser.parseEventLevelUnion( + currentEventType, + eventDataBuffer.toString(), + currentEventId, + currentRetry, + valueType, + discriminatorProperty); + hasNextItem = true; + resetEventState(); + return true; + } catch (Exception parseEx) { + System.err.println("Failed to parse SSE event: " + parseEx.getMessage()); + resetEventState(); + continue; + } + } + continue; + } + + if (line.startsWith(DATA_PREFIX)) { + String dataContent = line.substring(DATA_PREFIX.length()); + if (dataContent.startsWith(" ")) { + dataContent = dataContent.substring(1); + } + + if (eventDataBuffer.length() == 0 + && streamTerminator != null + && dataContent.trim().equals(streamTerminator)) { + endOfStream = true; + return false; + } + + if (eventDataBuffer.length() > 0) { + eventDataBuffer.append('\n'); + } + eventDataBuffer.append(dataContent); + } else if (line.startsWith("event:")) { + String eventValue = line.length() > 6 ? line.substring(6) : ""; + if (eventValue.startsWith(" ")) { + eventValue = eventValue.substring(1); + } + currentEventType = eventValue; + } else if (line.startsWith("id:")) { + String idValue = line.length() > 3 ? line.substring(3) : ""; + if (idValue.startsWith(" ")) { + idValue = idValue.substring(1); + } + currentEventId = idValue; + } else if (line.startsWith("retry:")) { + String retryValue = line.length() > 6 ? line.substring(6) : ""; + if (retryValue.startsWith(" ")) { + retryValue = retryValue.substring(1); + } + try { + currentRetry = Long.parseLong(retryValue.trim()); + } catch (NumberFormatException e) { + // Ignore invalid retry values + } + } else if (line.startsWith(":")) { + // Comment line (ignored) + } + } + + // Handle any remaining buffered data at end of stream + if (eventDataBuffer.length() > 0 || currentEventType != null) { + try { + nextItem = SseEventParser.parseEventLevelUnion( + currentEventType, + eventDataBuffer.toString(), + currentEventId, + currentRetry, + valueType, + discriminatorProperty); + hasNextItem = true; + resetEventState(); + return true; + } catch (Exception parseEx) { + System.err.println("Failed to parse final SSE event: " + parseEx.getMessage()); + resetEventState(); + } + } + + endOfStream = true; + return false; + + } catch (Exception e) { + System.err.println("Failed to parse SSE stream: " + e.getMessage()); + endOfStream = true; + return false; + } + } + + private void resetEventState() { + eventDataBuffer.setLength(0); + currentEventType = null; + currentEventId = null; + currentRetry = null; + } + } } diff --git a/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java index 4b10e0607..e4efcf3de 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/AsyncProviderClient.java @@ -31,21 +31,28 @@ public AsyncRawProviderClient withRawResponse() { } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture get() { return this.rawClient.get().thenApply(response -> response.body()); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture get(RequestOptions requestOptions) { + return this.rawClient.get(requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture get(GetEmailProviderRequestParameters request) { return this.rawClient.get(request).thenApply(response -> response.body()); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture get( GetEmailProviderRequestParameters request, RequestOptions requestOptions) { @@ -53,96 +60,96 @@ public CompletableFuture get( } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture create(CreateEmailProviderRequestContent request) { return this.rawClient.create(request).thenApply(response -> response.body()); } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { @@ -164,138 +171,184 @@ public CompletableFuture delete(RequestOptions requestOptions) { } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email: + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • + * When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • + * When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + + /** + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture update(UpdateEmailProviderRequestContent request) { return this.rawClient.update(request).thenApply(response -> response.body()); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java index 0bd147838..b75b2cea0 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/AsyncRawProviderClient.java @@ -45,14 +45,22 @@ public AsyncRawProviderClient(ClientOptions clientOptions) { } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get() { return get(GetEmailProviderRequestParameters.builder().build()); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture> get( + RequestOptions requestOptions) { + return get(GetEmailProviderRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get( GetEmailProviderRequestParameters request) { @@ -60,7 +68,7 @@ public CompletableFutureemail provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public CompletableFuture> get( GetEmailProviderRequestParameters request, RequestOptions requestOptions) { @@ -75,6 +83,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -148,48 +161,48 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> create( CreateEmailProviderRequestContent request) { @@ -197,55 +210,59 @@ public CompletableFuture<ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -254,7 +271,7 @@ public CompletableFuture> delete() { * Delete the email provider. */ public CompletableFuture> delete(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -410,92 +431,139 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> update() { return update(UpdateEmailProviderRequestContent.builder().build()); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email: + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • + * When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • + * When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    + */ + public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateEmailProviderRequestContent.builder().build(), requestOptions); + } + + /** + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> update( UpdateEmailProviderRequestContent request) { @@ -503,53 +571,57 @@ public CompletableFuture<ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CompletableFuture> update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -558,7 +630,7 @@ public CompletableFutureemail provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public GetEmailProviderResponseContent get() { return this.rawClient.get().body(); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. + */ + public GetEmailProviderResponseContent get(RequestOptions requestOptions) { + return this.rawClient.get(requestOptions).body(); + } + + /** + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public GetEmailProviderResponseContent get(GetEmailProviderRequestParameters request) { return this.rawClient.get(request).body(); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public GetEmailProviderResponseContent get( GetEmailProviderRequestParameters request, RequestOptions requestOptions) { @@ -52,96 +59,96 @@ public GetEmailProviderResponseContent get( } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CreateEmailProviderResponseContent create(CreateEmailProviderRequestContent request) { return this.rawClient.create(request).body(); } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public CreateEmailProviderResponseContent create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { @@ -163,138 +170,184 @@ public void delete(RequestOptions requestOptions) { } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public UpdateEmailProviderResponseContent update() { return this.rawClient.update().body(); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email: + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • + * When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • + * When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    + */ + public UpdateEmailProviderResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + + /** + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public UpdateEmailProviderResponseContent update(UpdateEmailProviderRequestContent request) { return this.rawClient.update(request).body(); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public UpdateEmailProviderResponseContent update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java b/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java index 7c294829f..c6154244b 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java +++ b/src/main/java/com/auth0/client/mgmt/emails/RawProviderClient.java @@ -41,21 +41,28 @@ public RawProviderClient(ClientOptions clientOptions) { } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get() { return get(GetEmailProviderRequestParameters.builder().build()); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. + */ + public ManagementApiHttpResponse get(RequestOptions requestOptions) { + return get(GetEmailProviderRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get(GetEmailProviderRequestParameters request) { return get(request, null); } /** - * Retrieve details of the <a href="https://auth0.com/docs/customize/email/smtp-email-providers">email provider configuration</a> in your tenant. A list of fields to include or exclude may also be specified. + * Retrieve details of the email provider configuration in your tenant. A list of fields to include or exclude may also be specified. */ public ManagementApiHttpResponse get( GetEmailProviderRequestParameters request, RequestOptions requestOptions) { @@ -70,6 +77,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -118,48 +130,48 @@ public ManagementApiHttpResponse get( } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse create( CreateEmailProviderRequestContent request) { @@ -167,55 +179,59 @@ public ManagementApiHttpResponse create( } /** - * Create an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Create an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * </li> - * <li> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + *
    • + *
    • + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse create( CreateEmailProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -224,7 +240,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -283,12 +299,16 @@ public ManagementApiHttpResponse delete() { * Delete the email provider. */ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -333,92 +353,138 @@ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse update() { return update(UpdateEmailProviderRequestContent.builder().build()); } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateEmailProviderRequestContent.builder().build(), requestOptions); + } + + /** + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration + * options, which will be used when sending an email: + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • + * When using AWS SES SMTP host, you may provide a name of configuration set in + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • + * When using Sparkpost host, you may provide value for + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse update( UpdateEmailProviderRequestContent request) { @@ -426,53 +492,57 @@ public ManagementApiHttpResponse update( } /** - * Update an <a href="https://auth0.com/docs/email/providers">email provider</a>. The <code>credentials</code> object - * requires different properties depending on the email provider (which is specified using the <code>name</code> property): - *

    <ul> - * <li><code>mandrill</code> requires <code>api_key</code></li> - * <li><code>sendgrid</code> requires <code>api_key</code></li> - * <li> - * <code>sparkpost</code> requires <code>api_key</code>. Optionally, set <code>region</code> to <code>eu</code> to use - * the SparkPost service hosted in Western Europe; set to <code>null</code> to use the SparkPost service hosted in - * North America. <code>eu</code> or <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li> - * <code>mailgun</code> requires <code>api_key</code> and <code>domain</code>. Optionally, set <code>region</code> to - * <code>eu</code> to use the Mailgun service hosted in Europe; set to <code>null</code> otherwise. <code>eu</code> or - * <code>null</code> are the only valid values for <code>region</code>. - * </li> - * <li><code>ses</code> requires <code>accessKeyId</code>, <code>secretAccessKey</code>, and <code>region</code></li> - * <li> - * <code>smtp</code> requires <code>smtp_host</code>, <code>smtp_port</code>, <code>smtp_user</code>, and - * <code>smtp_pass</code> - * </li> - * </ul> - * Depending on the type of provider it is possible to specify <code>settings</code> object with different configuration + * Update an email provider. The credentials object + * requires different properties depending on the email provider (which is specified using the name property): + *

      + *
    • mandrill requires api_key
    • + *
    • sendgrid requires api_key
    • + *
    • + * sparkpost requires api_key. Optionally, set region to eu to use + * the SparkPost service hosted in Western Europe; set to null to use the SparkPost service hosted in + * North America. eu or null are the only valid values for region. + *
    • + *
    • + * mailgun requires api_key and domain. Optionally, set region to + * eu to use the Mailgun service hosted in Europe; set to null otherwise. eu or + * null are the only valid values for region. + *
    • + *
    • ses requires accessKeyId, secretAccessKey, and region
    • + *
    • + * smtp requires smtp_host, smtp_port, smtp_user, and + * smtp_pass + *
    • + *
    + * Depending on the type of provider it is possible to specify settings object with different configuration * options, which will be used when sending an email: - * <ul> - * <li> - * <code>smtp</code> provider, <code>settings</code> may contain <code>headers</code> object. - * <ul> - * <li> + *
      + *
    • + * smtp provider, settings may contain headers object. + *
        + *
      • * When using AWS SES SMTP host, you may provide a name of configuration set in - * <code>X-SES-Configuration-Set</code> header. Value must be a string. - * </li> - * <li> + * X-SES-Configuration-Set header. Value must be a string. + *
      • + *
      • * When using Sparkpost host, you may provide value for - * <code>X-MSYS_API</code> header. Value must be an object. - * </li> - * </ul> - * for <code>ses</code> provider, <code>settings</code> may contain <code>message</code> object, where you can provide - * a name of configuration set in <code>configuration_set_name</code> property. Value must be a string. - * </li> - * </ul>

        + * X-MSYS_API header. Value must be an object. + *
      • + *
      + * for ses provider, settings may contain message object, where you can provide + * a name of configuration set in configuration_set_name property. Value must be a string. + *
    • + *

    */ public ManagementApiHttpResponse update( UpdateEmailProviderRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("emails/provider") - .build(); + .addPathSegments("emails/provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -481,7 +551,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/emails/types/CreateEmailProviderRequestContent.java b/src/main/java/com/auth0/client/mgmt/emails/types/CreateEmailProviderRequestContent.java index 556c5738a..a85a6a9e9 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/types/CreateEmailProviderRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/emails/types/CreateEmailProviderRequestContent.java @@ -140,6 +140,10 @@ public interface CredentialsStage { public interface _FinalStage { CreateEmailProviderRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether the provider is enabled (true) or disabled (false).

    */ @@ -284,5 +288,17 @@ public CreateEmailProviderRequestContent build() { return new CreateEmailProviderRequestContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java b/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java index df18ed7be..35eec1429 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/emails/types/GetEmailProviderRequestParameters.java @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetEmailProviderRequestParameters build() { return new GetEmailProviderRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/emails/types/UpdateEmailProviderRequestContent.java b/src/main/java/com/auth0/client/mgmt/emails/types/UpdateEmailProviderRequestContent.java index 54dd8275c..517dc060e 100644 --- a/src/main/java/com/auth0/client/mgmt/emails/types/UpdateEmailProviderRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/emails/types/UpdateEmailProviderRequestContent.java @@ -237,5 +237,15 @@ public UpdateEmailProviderRequestContent build() { return new UpdateEmailProviderRequestContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java index 342ff8d23..a90f86785 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncDeliveriesClient.java @@ -32,6 +32,10 @@ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( String id, ListEventStreamDeliveriesRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java index 23a0e8c2b..3a8ce9ff6 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawDeliveriesClient.java @@ -44,6 +44,11 @@ public CompletableFuture>> l return list(id, ListEventStreamDeliveriesRequestParameters.builder().build()); } + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListEventStreamDeliveriesRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( String id, ListEventStreamDeliveriesRequestParameters request) { return list(id, request, null); @@ -77,6 +82,11 @@ public CompletableFuture>> l httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -155,15 +165,19 @@ public CompletableFuture> getHistory( String id, String eventId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) .addPathSegments("deliveries") - .addPathSegment(eventId) - .build(); + .addPathSegment(eventId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java index 870028b5b..a4c20b191 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRawRedeliveriesClient.java @@ -42,6 +42,11 @@ public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create(id, CreateEventStreamRedeliveryRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> create( String id, CreateEventStreamRedeliveryRequestContent request) { return create(id, request, null); @@ -49,12 +54,16 @@ public CompletableFuture> create( String id, CreateEventStreamRedeliveryRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) - .addPathSegments("redeliver") - .build(); + .addPathSegments("redeliver"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -63,7 +72,7 @@ public CompletableFuture> createById(String id, public CompletableFuture> createById( String id, String eventId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) .addPathSegments("redeliver") - .addPathSegment(eventId) - .build(); + .addPathSegment(eventId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRedeliveriesClient.java index b9ae128e5..086405e03 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/AsyncRedeliveriesClient.java @@ -30,6 +30,11 @@ public CompletableFuture create(Stri return this.rawClient.create(id).thenApply(response -> response.body()); } + public CompletableFuture create( + String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture create( String id, CreateEventStreamRedeliveryRequestContent request) { return this.rawClient.create(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java index e4447c2d6..0d9b4e872 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/DeliveriesClient.java @@ -31,6 +31,10 @@ public List list(String id) { return this.rawClient.list(id).body(); } + public List list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + public List list(String id, ListEventStreamDeliveriesRequestParameters request) { return this.rawClient.list(id, request).body(); } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java index 4137ff1fc..e897dad04 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawDeliveriesClient.java @@ -40,6 +40,10 @@ public ManagementApiHttpResponse> list(String id) { return list(id, ListEventStreamDeliveriesRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListEventStreamDeliveriesRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( String id, ListEventStreamDeliveriesRequestParameters request) { return list(id, request, null); @@ -73,6 +77,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -128,15 +137,19 @@ public ManagementApiHttpResponse g public ManagementApiHttpResponse getHistory( String id, String eventId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) .addPathSegments("deliveries") - .addPathSegment(eventId) - .build(); + .addPathSegment(eventId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java index 251d36d88..a26608a9f 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RawRedeliveriesClient.java @@ -38,6 +38,11 @@ public ManagementApiHttpResponse cre return create(id, CreateEventStreamRedeliveryRequestContent.builder().build()); } + public ManagementApiHttpResponse create( + String id, RequestOptions requestOptions) { + return create(id, CreateEventStreamRedeliveryRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse create( String id, CreateEventStreamRedeliveryRequestContent request) { return create(id, request, null); @@ -45,12 +50,16 @@ public ManagementApiHttpResponse cre public ManagementApiHttpResponse create( String id, CreateEventStreamRedeliveryRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) - .addPathSegments("redeliver") - .build(); + .addPathSegments("redeliver"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -59,7 +68,7 @@ public ManagementApiHttpResponse cre throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -112,15 +121,19 @@ public ManagementApiHttpResponse createById(String id, String eventId) { } public ManagementApiHttpResponse createById(String id, String eventId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("event-streams") .addPathSegment(id) .addPathSegments("redeliver") - .addPathSegment(eventId) - .build(); + .addPathSegment(eventId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/RedeliveriesClient.java b/src/main/java/com/auth0/client/mgmt/eventstreams/RedeliveriesClient.java index 3ab86d00e..06a2629b9 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/RedeliveriesClient.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/RedeliveriesClient.java @@ -29,6 +29,10 @@ public CreateEventStreamRedeliveryResponseContent create(String id) { return this.rawClient.create(id).body(); } + public CreateEventStreamRedeliveryResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + public CreateEventStreamRedeliveryResponseContent create( String id, CreateEventStreamRedeliveryRequestContent request) { return this.rawClient.create(id, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/types/CreateEventStreamRedeliveryRequestContent.java b/src/main/java/com/auth0/client/mgmt/eventstreams/types/CreateEventStreamRedeliveryRequestContent.java index 04e899610..f98e2356e 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/types/CreateEventStreamRedeliveryRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/types/CreateEventStreamRedeliveryRequestContent.java @@ -195,5 +195,15 @@ public CreateEventStreamRedeliveryRequestContent build() { return new CreateEventStreamRedeliveryRequestContent( dateFrom, dateTo, statuses, eventTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java index 02389dd4a..ba85033fd 100644 --- a/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java @@ -425,5 +425,15 @@ public ListEventStreamDeliveriesRequestParameters build() { return new ListEventStreamDeliveriesRequestParameters( statuses, eventTypes, dateFrom, dateTo, from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/flows/AsyncExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/AsyncExecutionsClient.java index 7c49c8e85..6d039774d 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/AsyncExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/AsyncExecutionsClient.java @@ -33,6 +33,11 @@ public CompletableFuture> list(String f return this.rawClient.list(flowId).thenApply(response -> response.body()); } + public CompletableFuture> list( + String flowId, RequestOptions requestOptions) { + return this.rawClient.list(flowId, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( String flowId, ListFlowExecutionsRequestParameters request) { return this.rawClient.list(flowId, request).thenApply(response -> response.body()); @@ -47,6 +52,11 @@ public CompletableFuture get(String flowId, Str return this.rawClient.get(flowId, executionId).thenApply(response -> response.body()); } + public CompletableFuture get( + String flowId, String executionId, RequestOptions requestOptions) { + return this.rawClient.get(flowId, executionId, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture get( String flowId, String executionId, GetFlowExecutionRequestParameters request) { return this.rawClient.get(flowId, executionId, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java index c70835217..2a5f39b8a 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/AsyncRawExecutionsClient.java @@ -48,6 +48,11 @@ public CompletableFuture>> list( + String flowId, RequestOptions requestOptions) { + return list(flowId, ListFlowExecutionsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( String flowId, ListFlowExecutionsRequestParameters request) { return list(flowId, request, null); @@ -65,6 +70,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -155,6 +165,12 @@ public CompletableFuture> get( + String flowId, String executionId, RequestOptions requestOptions) { + return get( + flowId, executionId, GetFlowExecutionRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture> get( String flowId, String executionId, GetFlowExecutionRequestParameters request) { return get(flowId, executionId, request, null); @@ -175,6 +191,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -248,15 +269,19 @@ public CompletableFuture> delete(String flowId, public CompletableFuture> delete( String flowId, String executionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") .addPathSegment(flowId) .addPathSegments("executions") - .addPathSegment(executionId) - .build(); + .addPathSegment(executionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/flows/ExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/ExecutionsClient.java index ddcb37e92..671570820 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/ExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/ExecutionsClient.java @@ -32,6 +32,10 @@ public SyncPagingIterable list(String flowId) { return this.rawClient.list(flowId).body(); } + public SyncPagingIterable list(String flowId, RequestOptions requestOptions) { + return this.rawClient.list(flowId, requestOptions).body(); + } + public SyncPagingIterable list(String flowId, ListFlowExecutionsRequestParameters request) { return this.rawClient.list(flowId, request).body(); } @@ -45,6 +49,10 @@ public GetFlowExecutionResponseContent get(String flowId, String executionId) { return this.rawClient.get(flowId, executionId).body(); } + public GetFlowExecutionResponseContent get(String flowId, String executionId, RequestOptions requestOptions) { + return this.rawClient.get(flowId, executionId, requestOptions).body(); + } + public GetFlowExecutionResponseContent get( String flowId, String executionId, GetFlowExecutionRequestParameters request) { return this.rawClient.get(flowId, executionId, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java index 6bc25eb8a..51c38d571 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/RawExecutionsClient.java @@ -43,6 +43,11 @@ public ManagementApiHttpResponse> list( return list(flowId, ListFlowExecutionsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list( + String flowId, RequestOptions requestOptions) { + return list(flowId, ListFlowExecutionsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( String flowId, ListFlowExecutionsRequestParameters request) { return list(flowId, request, null); @@ -60,6 +65,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -121,6 +131,12 @@ public ManagementApiHttpResponse get(String flo flowId, executionId, GetFlowExecutionRequestParameters.builder().build()); } + public ManagementApiHttpResponse get( + String flowId, String executionId, RequestOptions requestOptions) { + return get( + flowId, executionId, GetFlowExecutionRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse get( String flowId, String executionId, GetFlowExecutionRequestParameters request) { return get(flowId, executionId, request, null); @@ -141,6 +157,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "hydrate", request.getHydrate().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -190,15 +211,19 @@ public ManagementApiHttpResponse delete(String flowId, String executionId) } public ManagementApiHttpResponse delete(String flowId, String executionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows") .addPathSegment(flowId) .addPathSegments("executions") - .addPathSegment(executionId) - .build(); + .addPathSegment(executionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java index 38e2a94f2..f39a035ee 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/types/GetFlowExecutionRequestParameters.java @@ -131,5 +131,15 @@ public Builder hydrate(GetFlowExecutionRequestParametersHydrateEnum hydrate) { public GetFlowExecutionRequestParameters build() { return new GetFlowExecutionRequestParameters(hydrate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java index 48f9441be..51e407678 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListFlowExecutionsRequestParameters build() { return new ListFlowExecutionsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncConnectionsClient.java index 4ae8157cd..dbdd5aa48 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncConnectionsClient.java @@ -36,6 +36,10 @@ public CompletableFuture> list() return this.rawClient.list().thenApply(response -> response.body()); } + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( ListFlowsVaultConnectionsRequestParameters request) { return this.rawClient.list(request).thenApply(response -> response.body()); @@ -76,6 +80,11 @@ public CompletableFuture update(Strin return this.rawClient.update(id).thenApply(response -> response.body()); } + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update( String id, UpdateFlowsVaultConnectionRequestContent request) { return this.rawClient.update(id, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java index 69afed7dc..811186f6d 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/AsyncRawConnectionsClient.java @@ -53,6 +53,11 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListFlowsVaultConnectionsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( ListFlowsVaultConnectionsRequestParameters request) { return list(request, null); @@ -68,6 +73,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -164,10 +174,14 @@ public CompletableFuture> create( CreateFlowsVaultConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("flows/vault/connections") - .build(); + .addPathSegments("flows/vault/connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -176,7 +190,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -331,13 +349,17 @@ public CompletableFuture> delete(String id) { } public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -403,6 +425,11 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update(id, UpdateFlowsVaultConnectionRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( String id, UpdateFlowsVaultConnectionRequestContent request) { return update(id, request, null); @@ -410,11 +437,15 @@ public CompletableFuture> update( String id, UpdateFlowsVaultConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -423,7 +454,7 @@ public CompletableFuture list() { return this.rawClient.list().body(); } + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + public SyncPagingIterable list(ListFlowsVaultConnectionsRequestParameters request) { return this.rawClient.list(request).body(); } @@ -73,6 +77,10 @@ public UpdateFlowsVaultConnectionResponseContent update(String id) { return this.rawClient.update(id).body(); } + public UpdateFlowsVaultConnectionResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + public UpdateFlowsVaultConnectionResponseContent update( String id, UpdateFlowsVaultConnectionRequestContent request) { return this.rawClient.update(id, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java index 60280b9e8..56969cf99 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/RawConnectionsClient.java @@ -48,6 +48,11 @@ public ManagementApiHttpResponse return list(ListFlowsVaultConnectionsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListFlowsVaultConnectionsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( ListFlowsVaultConnectionsRequestParameters request) { return list(request, null); @@ -63,6 +68,11 @@ public ManagementApiHttpResponse httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -128,10 +138,14 @@ public ManagementApiHttpResponse crea public ManagementApiHttpResponse create( CreateFlowsVaultConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("flows/vault/connections") - .build(); + .addPathSegments("flows/vault/connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +154,7 @@ public ManagementApiHttpResponse crea throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -191,13 +205,17 @@ public ManagementApiHttpResponse get(Str public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -249,13 +267,17 @@ public ManagementApiHttpResponse delete(String id) { } public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -300,6 +322,11 @@ public ManagementApiHttpResponse upda return update(id, UpdateFlowsVaultConnectionRequestContent.builder().build()); } + public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update(id, UpdateFlowsVaultConnectionRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update( String id, UpdateFlowsVaultConnectionRequestContent request) { return update(id, request, null); @@ -307,11 +334,15 @@ public ManagementApiHttpResponse upda public ManagementApiHttpResponse update( String id, UpdateFlowsVaultConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("flows/vault/connections") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -320,7 +351,7 @@ public ManagementApiHttpResponse upda throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java index 59dcad827..f6420199a 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListFlowsVaultConnectionsRequestParameters build() { return new ListFlowsVaultConnectionsRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/types/UpdateFlowsVaultConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/flows/vault/types/UpdateFlowsVaultConnectionRequestContent.java index df611d005..4a6e7d9bc 100644 --- a/src/main/java/com/auth0/client/mgmt/flows/vault/types/UpdateFlowsVaultConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/flows/vault/types/UpdateFlowsVaultConnectionRequestContent.java @@ -124,5 +124,15 @@ public Builder setup(UpdateFlowsVaultConnectionSetup setup) { public UpdateFlowsVaultConnectionRequestContent build() { return new UpdateFlowsVaultConnectionRequestContent(name, setup, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java index ff414e688..6b0c8aea9 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncMembersClient.java @@ -34,6 +34,13 @@ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } + /** + * List all users that are a member of this group. + */ + public CompletableFuture> get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + /** * List all users that are a member of this group. */ diff --git a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java index d66c1afaa..240ab8f97 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/AsyncRawMembersClient.java @@ -48,6 +48,14 @@ public CompletableFuture>> get( + String id, RequestOptions requestOptions) { + return get(id, GetGroupMembersRequestParameters.builder().build(), requestOptions); + } + /** * List all users that are a member of this group. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java index 9e3e321f5..4ad1f164c 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/MembersClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable get(String id) { return this.rawClient.get(id).body(); } + /** + * List all users that are a member of this group. + */ + public SyncPagingIterable get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + /** * List all users that are a member of this group. */ diff --git a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java index 2719590c7..5c39425ff 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/groups/RawMembersClient.java @@ -43,6 +43,13 @@ public ManagementApiHttpResponse> get(String id) return get(id, GetGroupMembersRequestParameters.builder().build()); } + /** + * List all users that are a member of this group. + */ + public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { + return get(id, GetGroupMembersRequestParameters.builder().build(), requestOptions); + } + /** * List all users that are a member of this group. */ @@ -74,6 +81,11 @@ public ManagementApiHttpResponse> get( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java index cee282e0b..c1879dab9 100644 --- a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java @@ -303,5 +303,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public GetGroupMembersRequestParameters build() { return new GetGroupMembersRequestParameters(fields, includeFields, from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncEnrollmentsClient.java index 2df1eda7f..0e7065c81 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncEnrollmentsClient.java @@ -28,8 +28,8 @@ public AsyncRawEnrollmentsClient withRawResponse() { } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CompletableFuture createTicket( @@ -38,8 +38,8 @@ public CompletableFuture createTi } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CompletableFuture createTicket( @@ -62,14 +62,14 @@ public CompletableFuture get(String id, Re } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public CompletableFuture delete(String id) { return this.rawClient.delete(id).thenApply(response -> response.body()); } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public CompletableFuture delete(String id, RequestOptions requestOptions) { return this.rawClient.delete(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncFactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncFactorsClient.java index bc95ff62f..e387e1911 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncFactorsClient.java @@ -48,14 +48,14 @@ public AsyncRawFactorsClient withRawResponse() { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public CompletableFuture> list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncPoliciesClient.java index 1ea9b5c01..dc433cc35 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncPoliciesClient.java @@ -27,52 +27,52 @@ public AsyncRawPoliciesClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture> list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).thenApply(response -> response.body()); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture> set(List request) { return this.rawClient.set(request).thenApply(response -> response.body()); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture> set(List request, RequestOptions requestOptions) { return this.rawClient.set(request, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java index 3981a5b82..9e2ac9f42 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawEnrollmentsClient.java @@ -39,8 +39,8 @@ public AsyncRawEnrollmentsClient(ClientOptions clientOptions) { } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CompletableFuture> createTicket( @@ -49,16 +49,20 @@ public CompletableFuturemulti-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CompletableFuture> createTicket( CreateGuardianEnrollmentTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/enrollments/ticket") - .build(); + .addPathSegments("guardian/enrollments/ticket"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -67,7 +71,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/enrollments") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -214,23 +222,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public CompletableFuture> delete(String id) { return delete(id, null); } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/enrollments") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java index 62dfea126..9d0c81b9d 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/AsyncRawFactorsClient.java @@ -41,22 +41,26 @@ public AsyncRawFactorsClient(ClientOptions clientOptions) { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public CompletableFuture>> list() { return list(null); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public CompletableFuture>> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors") - .build(); + .addPathSegments("guardian/factors"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -129,11 +133,15 @@ public CompletableFuture> set( GuardianFactorNameEnum name, SetGuardianFactorRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/factors") - .addPathSegment(name.toString()) - .build(); + .addPathSegment(name.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -142,7 +150,7 @@ public CompletableFuturemulti-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture>> list() { return list(null); } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture>> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/policies") - .build(); + .addPathSegments("guardian/policies"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -126,33 +130,37 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture>> set(List request) { return set(request, null); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public CompletableFuture>> set( List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/policies") - .build(); + .addPathSegments("guardian/policies"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -161,7 +169,7 @@ public CompletableFuture>> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/EnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/EnrollmentsClient.java index d68f7d4c5..414757076 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/EnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/EnrollmentsClient.java @@ -27,8 +27,8 @@ public RawEnrollmentsClient withRawResponse() { } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CreateGuardianEnrollmentTicketResponseContent createTicket( @@ -37,8 +37,8 @@ public CreateGuardianEnrollmentTicketResponseContent createTicket( } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public CreateGuardianEnrollmentTicketResponseContent createTicket( @@ -61,14 +61,14 @@ public GetGuardianEnrollmentResponseContent get(String id, RequestOptions reques } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public void delete(String id) { this.rawClient.delete(id).body(); } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public void delete(String id, RequestOptions requestOptions) { this.rawClient.delete(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/FactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/FactorsClient.java index d9f4c4927..8425b8b9c 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/FactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/FactorsClient.java @@ -47,14 +47,14 @@ public RawFactorsClient withRawResponse() { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public List list() { return this.rawClient.list().body(); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public List list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/PoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/PoliciesClient.java index df16a5110..e97f7cdb9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/PoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/PoliciesClient.java @@ -26,52 +26,52 @@ public RawPoliciesClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public List list() { return this.rawClient.list().body(); } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public List list(RequestOptions requestOptions) { return this.rawClient.list(requestOptions).body(); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public List set(List request) { return this.rawClient.set(request).body(); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public List set(List request, RequestOptions requestOptions) { return this.rawClient.set(request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java index 1e4712778..38535556f 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawEnrollmentsClient.java @@ -35,8 +35,8 @@ public RawEnrollmentsClient(ClientOptions clientOptions) { } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public ManagementApiHttpResponse createTicket( @@ -45,16 +45,20 @@ public ManagementApiHttpResponse } /** - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket, to a given user. - * Create a <a href="https://auth0.com/docs/secure/multi-factor-authentication/auth0-guardian/create-custom-enrollment-tickets">multi-factor authentication (MFA) enrollment ticket</a>, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.<br/> + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket, to a given user. + * Create a multi-factor authentication (MFA) enrollment ticket, and optionally send an email with the created ticket to a given user. Enrollment tickets can specify which factor users must enroll with or allow existing MFA users to enroll in additional factors.
    *

    Note: Users cannot enroll in Email as a factor through custom enrollment tickets.

    */ public ManagementApiHttpResponse createTicket( CreateGuardianEnrollmentTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/enrollments/ticket") - .build(); + .addPathSegments("guardian/enrollments/ticket"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -63,7 +67,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -120,13 +124,17 @@ public ManagementApiHttpResponse get(Strin */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/enrollments") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -168,23 +176,27 @@ public ManagementApiHttpResponse get( } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public ManagementApiHttpResponse delete(String id) { return delete(id, null); } /** - * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/reset-user-mfa">Reset User Multi-Factor Authentication and Recovery Codes</a>. + * Remove a specific multi-factor authentication (MFA) enrollment from a user's account. This allows the user to re-enroll with MFA. For more information, review Reset User Multi-Factor Authentication and Recovery Codes. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/enrollments") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java index 8924c6714..09ddffd78 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawFactorsClient.java @@ -37,22 +37,26 @@ public RawFactorsClient(ClientOptions clientOptions) { } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public ManagementApiHttpResponse> list() { return list(null); } /** - * Retrieve details of all <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication factors</a> associated with your tenant. + * Retrieve details of all multi-factor authentication factors associated with your tenant. */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors") - .build(); + .addPathSegments("guardian/factors"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -106,11 +110,15 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( GuardianFactorNameEnum name, SetGuardianFactorRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("guardian/factors") - .addPathSegment(name.toString()) - .build(); + .addPathSegment(name.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -119,7 +127,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java b/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java index ec7b75cf0..2305d3dd5 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/RawPoliciesClient.java @@ -34,34 +34,38 @@ public RawPoliciesClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public ManagementApiHttpResponse> list() { return list(null); } /** - * Retrieve the <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> configured for your tenant. + * Retrieve the multi-factor authentication (MFA) policies configured for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/policies") - .build(); + .addPathSegments("guardian/policies"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -103,33 +107,37 @@ public ManagementApiHttpResponse> list(RequestOptions reques } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public ManagementApiHttpResponse> set(List request) { return set(request, null); } /** - * Set <a href="https://auth0.com/docs/secure/multi-factor-authentication/enable-mfa">multi-factor authentication (MFA) policies</a> for your tenant. + * Set multi-factor authentication (MFA) policies for your tenant. *

    The following policies are supported:

    - *

    <ul> - * <li><code>all-applications</code> policy prompts with MFA for all logins.</li> - * <li><code>confidence-score</code> policy prompts with MFA only for low confidence logins.</li> - * </ul>

    - *

    <b>Note</b>: The <code>confidence-score</code> policy is part of the <a href="https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa">Adaptive MFA feature</a>. Adaptive MFA requires an add-on for the Enterprise plan; review <a href="https://auth0.com/pricing">Auth0 Pricing</a> for more details.

    + *

      + *
    • all-applications policy prompts with MFA for all logins.
    • + *
    • confidence-score policy prompts with MFA only for low confidence logins.
    • + *

    + *

    Note: The confidence-score policy is part of the Adaptive MFA feature. Adaptive MFA requires an add-on for the Enterprise plan; review Auth0 Pricing for more details.

    */ public ManagementApiHttpResponse> set( List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/policies") - .build(); + .addPathSegments("guardian/policies"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -138,7 +146,7 @@ public ManagementApiHttpResponse> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPhoneClient.java index 3c395b10d..955dcc44f 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPhoneClient.java @@ -37,14 +37,14 @@ public AsyncRawPhoneClient withRawResponse() { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture getMessageTypes() { return this.rawClient.getMessageTypes().thenApply(response -> response.body()); } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture getMessageTypes( RequestOptions requestOptions) { @@ -52,7 +52,7 @@ public CompletableFuture getM } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request) { @@ -60,7 +60,7 @@ public CompletableFuture setM } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request, RequestOptions requestOptions) { @@ -68,14 +68,14 @@ public CompletableFuture setM } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture getTwilioProvider() { return this.rawClient.getTwilioProvider().thenApply(response -> response.body()); } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture getTwilioProvider( RequestOptions requestOptions) { @@ -83,14 +83,22 @@ public CompletableFuture g } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture setTwilioProvider() { return this.rawClient.setTwilioProvider().thenApply(response -> response.body()); } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. + */ + public CompletableFuture setTwilioProvider( + RequestOptions requestOptions) { + return this.rawClient.setTwilioProvider(requestOptions).thenApply(response -> response.body()); + } + + /** + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request) { @@ -98,7 +106,7 @@ public CompletableFuture s } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPushNotificationClient.java index fa448b77b..7b2e4da67 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncPushNotificationClient.java @@ -64,6 +64,14 @@ public CompletableFuture response.body()); } + /** + * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public CompletableFuture setApnsProvider( + RequestOptions requestOptions) { + return this.rawClient.setApnsProvider(requestOptions).thenApply(response -> response.body()); + } + /** * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -87,6 +95,14 @@ public CompletableFuture response.body()); } + /** + * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public CompletableFuture updateApnsProvider( + RequestOptions requestOptions) { + return this.rawClient.updateApnsProvider(requestOptions).thenApply(response -> response.body()); + } + /** * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -110,6 +126,13 @@ public CompletableFuture> setFcmProvider() { return this.rawClient.setFcmProvider().thenApply(response -> response.body()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public CompletableFuture> setFcmProvider(RequestOptions requestOptions) { + return this.rawClient.setFcmProvider(requestOptions).thenApply(response -> response.body()); + } + /** * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -133,6 +156,13 @@ public CompletableFuture> updateFcmProvider() { return this.rawClient.updateFcmProvider().thenApply(response -> response.body()); } + /** + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public CompletableFuture> updateFcmProvider(RequestOptions requestOptions) { + return this.rawClient.updateFcmProvider(requestOptions).thenApply(response -> response.body()); + } + /** * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -156,6 +186,13 @@ public CompletableFuture> setFcmv1Provider() { return this.rawClient.setFcmv1Provider().thenApply(response -> response.body()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public CompletableFuture> setFcmv1Provider(RequestOptions requestOptions) { + return this.rawClient.setFcmv1Provider(requestOptions).thenApply(response -> response.body()); + } + /** * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -179,6 +216,13 @@ public CompletableFuture> updateFcmv1Provider() { return this.rawClient.updateFcmv1Provider().thenApply(response -> response.body()); } + /** + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public CompletableFuture> updateFcmv1Provider(RequestOptions requestOptions) { + return this.rawClient.updateFcmv1Provider(requestOptions).thenApply(response -> response.body()); + } + /** * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -196,14 +240,14 @@ public CompletableFuture> updateFcmv1Provider( } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public CompletableFuture getSnsProvider() { return this.rawClient.getSnsProvider().thenApply(response -> response.body()); } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public CompletableFuture getSnsProvider( RequestOptions requestOptions) { @@ -211,14 +255,22 @@ public CompletableFuture getSnsPro } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture setSnsProvider() { return this.rawClient.setSnsProvider().thenApply(response -> response.body()); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public CompletableFuture setSnsProvider( + RequestOptions requestOptions) { + return this.rawClient.setSnsProvider(requestOptions).thenApply(response -> response.body()); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -226,7 +278,7 @@ public CompletableFutureAWS SNS push notification provider configuration (subscription required). */ public CompletableFuture setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { @@ -234,14 +286,22 @@ public CompletableFutureAWS SNS push notification provider configuration (subscription required). */ public CompletableFuture updateSnsProvider() { return this.rawClient.updateSnsProvider().thenApply(response -> response.body()); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public CompletableFuture updateSnsProvider( + RequestOptions requestOptions) { + return this.rawClient.updateSnsProvider(requestOptions).thenApply(response -> response.body()); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -249,7 +309,7 @@ public CompletableFutureAWS SNS push notification provider configuration (subscription required). */ public CompletableFuture updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { @@ -257,14 +317,14 @@ public CompletableFutureConfigure Push Notifications for MFA. */ public CompletableFuture getSelectedProvider() { return this.rawClient.getSelectedProvider().thenApply(response -> response.body()); } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture getSelectedProvider( RequestOptions requestOptions) { @@ -272,7 +332,7 @@ public CompletableFutureConfigure Push Notifications for MFA. */ public CompletableFuture setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request) { @@ -280,7 +340,7 @@ public CompletableFutureConfigure Push Notifications for MFA. */ public CompletableFuture setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java index 69bd75112..3071a7d43 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawPhoneClient.java @@ -48,7 +48,7 @@ public AsyncRawPhoneClient(ClientOptions clientOptions) { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture> getMessageTypes() { @@ -56,16 +56,20 @@ public AsyncRawPhoneClient(ClientOptions clientOptions) { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture> getMessageTypes(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/message-types") - .build(); + .addPathSegments("guardian/factors/phone/message-types"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -127,7 +131,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture> setMessageTypes(SetGuardianFactorPhoneMessageTypesRequestContent request) { @@ -135,14 +139,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public CompletableFuture> setMessageTypes(SetGuardianFactorPhoneMessageTypesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/message-types") - .build(); + .addPathSegments("guardian/factors/phone/message-types"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -151,7 +159,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -219,7 +227,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> getTwilioProvider() { @@ -227,16 +235,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> getTwilioProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/providers/twilio") - .build(); + .addPathSegments("guardian/factors/phone/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -298,7 +310,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> setTwilioProvider() { @@ -307,7 +319,16 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. + */ + public CompletableFuture> + setTwilioProvider(RequestOptions requestOptions) { + return setTwilioProvider( + SetGuardianFactorsProviderPhoneTwilioRequestContent.builder().build(), requestOptions); + } + + /** + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> setTwilioProvider(SetGuardianFactorsProviderPhoneTwilioRequestContent request) { @@ -315,15 +336,19 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public CompletableFuture> setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/providers/twilio") - .build(); + .addPathSegments("guardian/factors/phone/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -332,7 +357,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -407,12 +432,16 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { */ public CompletableFuture> getSelectedProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/selected-provider") - .build(); + .addPathSegments("guardian/factors/phone/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -480,10 +509,14 @@ public CompletableFuture> setProvider( SetGuardianFactorsProviderPhoneRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/selected-provider") - .build(); + .addPathSegments("guardian/factors/phone/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -492,7 +525,7 @@ public CompletableFuture> getTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/templates") - .build(); + .addPathSegments("guardian/factors/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -645,10 +682,14 @@ public CompletableFuture> setTemplates( SetGuardianFactorPhoneTemplatesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/templates") - .build(); + .addPathSegments("guardian/factors/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -657,7 +698,7 @@ public CompletableFuture> getApnsProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -141,6 +145,17 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public CompletableFuture> + setApnsProvider(RequestOptions requestOptions) { + return setApnsProvider( + SetGuardianFactorsProviderPushNotificationApnsRequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -156,10 +171,14 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { setApnsProvider( SetGuardianFactorsProviderPushNotificationApnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -168,7 +187,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -241,6 +260,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { .build()); } + /** + * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public CompletableFuture< + ManagementApiHttpResponse> + updateApnsProvider(RequestOptions requestOptions) { + return updateApnsProvider( + UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -258,10 +289,14 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { updateApnsProvider( UpdateGuardianFactorsProviderPushNotificationApnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -270,7 +305,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -341,6 +376,17 @@ public CompletableFuture>> setFcmP .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public CompletableFuture>> setFcmProvider( + RequestOptions requestOptions) { + return setFcmProvider( + SetGuardianFactorsProviderPushNotificationFcmRequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -354,10 +400,14 @@ public CompletableFuture>> setFcmP */ public CompletableFuture>> setFcmProvider( SetGuardianFactorsProviderPushNotificationFcmRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcm") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcm"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -366,7 +416,7 @@ public CompletableFuture>> setFcmP throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -435,6 +485,17 @@ public CompletableFuture>> updateF .build()); } + /** + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public CompletableFuture>> updateFcmProvider( + RequestOptions requestOptions) { + return updateFcmProvider( + UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -448,10 +509,14 @@ public CompletableFuture>> updateF */ public CompletableFuture>> updateFcmProvider( UpdateGuardianFactorsProviderPushNotificationFcmRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcm") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcm"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -460,7 +525,7 @@ public CompletableFuture>> updateF throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -529,6 +594,17 @@ public CompletableFuture>> setFcmv .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public CompletableFuture>> setFcmv1Provider( + RequestOptions requestOptions) { + return setFcmv1Provider( + SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -542,10 +618,14 @@ public CompletableFuture>> setFcmv */ public CompletableFuture>> setFcmv1Provider( SetGuardianFactorsProviderPushNotificationFcmv1RequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcmv1") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcmv1"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -554,7 +634,7 @@ public CompletableFuture>> setFcmv throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -623,6 +703,17 @@ public CompletableFuture>> updateF .build()); } + /** + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public CompletableFuture>> updateFcmv1Provider( + RequestOptions requestOptions) { + return updateFcmv1Provider( + UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -636,10 +727,14 @@ public CompletableFuture>> updateF */ public CompletableFuture>> updateFcmv1Provider( UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcmv1") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcmv1"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -648,7 +743,7 @@ public CompletableFuture>> updateF throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -710,23 +805,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public CompletableFuture> getSnsProvider() { return getSnsProvider(null); } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public CompletableFuture> getSnsProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -788,7 +887,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> setSnsProvider() { @@ -797,7 +896,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public CompletableFuture> + setSnsProvider(RequestOptions requestOptions) { + return setSnsProvider( + SetGuardianFactorsProviderPushNotificationSnsRequestContent.builder() + .build(), + requestOptions); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> setSnsProvider(SetGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -805,16 +915,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -823,7 +937,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -887,7 +1001,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> updateSnsProvider() { @@ -896,7 +1010,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public CompletableFuture> + updateSnsProvider(RequestOptions requestOptions) { + return updateSnsProvider( + UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.builder() + .build(), + requestOptions); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> updateSnsProvider(UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -904,16 +1029,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public CompletableFuture> updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -922,7 +1051,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -986,7 +1115,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture> getSelectedProvider() { @@ -994,16 +1123,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture> getSelectedProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/selected-provider") - .build(); + .addPathSegments("guardian/factors/push-notification/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -1066,7 +1199,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture> setProvider(SetGuardianFactorsProviderPushNotificationRequestContent request) { @@ -1074,15 +1207,19 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public CompletableFuture> setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/selected-provider") - .build(); + .addPathSegments("guardian/factors/push-notification/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -1091,7 +1228,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java index d9bab8e3c..99d893513 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/AsyncRawSmsClient.java @@ -44,8 +44,8 @@ public AsyncRawSmsClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public CompletableFuture> @@ -54,18 +54,22 @@ public AsyncRawSmsClient(ClientOptions clientOptions) { } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public CompletableFuture> getTwilioProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/providers/twilio") - .build(); + .addPathSegments("guardian/factors/sms/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -127,8 +131,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture> @@ -138,8 +142,19 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
    +     * 
    + */ + public CompletableFuture> + setTwilioProvider(RequestOptions requestOptions) { + return setTwilioProvider( + SetGuardianFactorsProviderSmsTwilioRequestContent.builder().build(), requestOptions); + } + + /** + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture> @@ -148,17 +163,21 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture> setTwilioProvider( SetGuardianFactorsProviderSmsTwilioRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/providers/twilio") - .build(); + .addPathSegments("guardian/factors/sms/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -167,7 +186,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -230,8 +249,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public CompletableFuture> @@ -240,18 +259,22 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public CompletableFuture> getSelectedProvider(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/selected-provider") - .build(); + .addPathSegments("guardian/factors/sms/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -313,8 +336,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public CompletableFuture> setProvider( @@ -323,16 +346,20 @@ public CompletableFuture<b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant. + * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead. + *
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public CompletableFuture> setProvider( SetGuardianFactorsProviderSmsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/selected-provider") - .build(); + .addPathSegments("guardian/factors/sms/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -341,7 +368,7 @@ public CompletableFuture<b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant. + * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. + *
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public CompletableFuture> getTemplates() { @@ -413,18 +440,22 @@ public CompletableFuture<b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant. + * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead. + *
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public CompletableFuture> getTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/templates") - .build(); + .addPathSegments("guardian/factors/sms/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -486,8 +517,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public CompletableFuture> setTemplates( @@ -496,16 +527,20 @@ public CompletableFuture<b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification. + * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead. + *
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public CompletableFuture> setTemplates( SetGuardianFactorSmsTemplatesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/templates") - .build(); + .addPathSegments("guardian/factors/sms/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -514,7 +549,7 @@ public CompletableFutureA new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead. + * Retrieve the Twilio SMS provider configuration (subscription required). + *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public CompletableFuture getTwilioProvider() { @@ -43,8 +43,8 @@ public CompletableFuture get } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public CompletableFuture getTwilioProvider( @@ -53,8 +53,8 @@ public CompletableFuture get } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture setTwilioProvider() { @@ -62,8 +62,18 @@ public CompletableFuture set } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
    +     * 
    + */ + public CompletableFuture setTwilioProvider( + RequestOptions requestOptions) { + return this.rawClient.setTwilioProvider(requestOptions).thenApply(response -> response.body()); + } + + /** + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture setTwilioProvider( @@ -72,8 +82,8 @@ public CompletableFuture set } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public CompletableFuture setTwilioProvider( @@ -82,8 +92,8 @@ public CompletableFuture set } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public CompletableFuture getSelectedProvider() { @@ -91,8 +101,8 @@ public CompletableFuture getSelect } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public CompletableFuture getSelectedProvider( @@ -101,8 +111,8 @@ public CompletableFuture getSelect } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public CompletableFuture setProvider( @@ -111,8 +121,8 @@ public CompletableFuture setProvid } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public CompletableFuture setProvider( @@ -121,8 +131,8 @@ public CompletableFuture setProvid } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public CompletableFuture getTemplates() { @@ -130,8 +140,8 @@ public CompletableFuture getTempla } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public CompletableFuture getTemplates(RequestOptions requestOptions) { @@ -139,8 +149,8 @@ public CompletableFuture getTempla } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public CompletableFuture setTemplates( @@ -149,8 +159,8 @@ public CompletableFuture setTempla } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public CompletableFuture setTemplates( diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/PhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/PhoneClient.java index 0bbe2445e..baae8b16a 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/PhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/PhoneClient.java @@ -36,21 +36,21 @@ public RawPhoneClient withRawResponse() { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public GetGuardianFactorPhoneMessageTypesResponseContent getMessageTypes() { return this.rawClient.getMessageTypes().body(); } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public GetGuardianFactorPhoneMessageTypesResponseContent getMessageTypes(RequestOptions requestOptions) { return this.rawClient.getMessageTypes(requestOptions).body(); } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public SetGuardianFactorPhoneMessageTypesResponseContent setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request) { @@ -58,7 +58,7 @@ public SetGuardianFactorPhoneMessageTypesResponseContent setMessageTypes( } /** - * Replace the list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Replace the list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public SetGuardianFactorPhoneMessageTypesResponseContent setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request, RequestOptions requestOptions) { @@ -66,28 +66,35 @@ public SetGuardianFactorPhoneMessageTypesResponseContent setMessageTypes( } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public GetGuardianFactorsProviderPhoneTwilioResponseContent getTwilioProvider() { return this.rawClient.getTwilioProvider().body(); } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public GetGuardianFactorsProviderPhoneTwilioResponseContent getTwilioProvider(RequestOptions requestOptions) { return this.rawClient.getTwilioProvider(requestOptions).body(); } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider() { return this.rawClient.setTwilioProvider().body(); } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. + */ + public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider(RequestOptions requestOptions) { + return this.rawClient.setTwilioProvider(requestOptions).body(); + } + + /** + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request) { @@ -95,7 +102,7 @@ public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider( } /** - * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public SetGuardianFactorsProviderPhoneTwilioResponseContent setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/PushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/PushNotificationClient.java index 8e3b97126..d12bafc66 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/PushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/PushNotificationClient.java @@ -62,6 +62,14 @@ public SetGuardianFactorsProviderPushNotificationApnsResponseContent setApnsProv return this.rawClient.setApnsProvider().body(); } + /** + * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public SetGuardianFactorsProviderPushNotificationApnsResponseContent setApnsProvider( + RequestOptions requestOptions) { + return this.rawClient.setApnsProvider(requestOptions).body(); + } + /** * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -85,6 +93,14 @@ public UpdateGuardianFactorsProviderPushNotificationApnsResponseContent updateAp return this.rawClient.updateApnsProvider().body(); } + /** + * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. + */ + public UpdateGuardianFactorsProviderPushNotificationApnsResponseContent updateApnsProvider( + RequestOptions requestOptions) { + return this.rawClient.updateApnsProvider(requestOptions).body(); + } + /** * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -108,6 +124,13 @@ public Map setFcmProvider() { return this.rawClient.setFcmProvider().body(); } + /** + * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public Map setFcmProvider(RequestOptions requestOptions) { + return this.rawClient.setFcmProvider(requestOptions).body(); + } + /** * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -130,6 +153,13 @@ public Map updateFcmProvider() { return this.rawClient.updateFcmProvider().body(); } + /** + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public Map updateFcmProvider(RequestOptions requestOptions) { + return this.rawClient.updateFcmProvider(requestOptions).body(); + } + /** * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -153,6 +183,13 @@ public Map setFcmv1Provider() { return this.rawClient.setFcmv1Provider().body(); } + /** + * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public Map setFcmv1Provider(RequestOptions requestOptions) { + return this.rawClient.setFcmv1Provider(requestOptions).body(); + } + /** * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -175,6 +212,13 @@ public Map updateFcmv1Provider() { return this.rawClient.updateFcmv1Provider().body(); } + /** + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public Map updateFcmv1Provider(RequestOptions requestOptions) { + return this.rawClient.updateFcmv1Provider(requestOptions).body(); + } + /** * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -192,28 +236,35 @@ public Map updateFcmv1Provider( } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public GetGuardianFactorsProviderSnsResponseContent getSnsProvider() { return this.rawClient.getSnsProvider().body(); } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public GetGuardianFactorsProviderSnsResponseContent getSnsProvider(RequestOptions requestOptions) { return this.rawClient.getSnsProvider(requestOptions).body(); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvider() { return this.rawClient.setSnsProvider().body(); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvider(RequestOptions requestOptions) { + return this.rawClient.setSnsProvider(requestOptions).body(); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -221,7 +272,7 @@ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvid } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { @@ -229,14 +280,22 @@ public SetGuardianFactorsProviderPushNotificationSnsResponseContent setSnsProvid } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSnsProvider() { return this.rawClient.updateSnsProvider().body(); } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). + */ + public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSnsProvider( + RequestOptions requestOptions) { + return this.rawClient.updateSnsProvider(requestOptions).body(); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -244,7 +303,7 @@ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSns } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { @@ -252,14 +311,14 @@ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent updateSns } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public GetGuardianFactorsProviderPushNotificationResponseContent getSelectedProvider() { return this.rawClient.getSelectedProvider().body(); } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public GetGuardianFactorsProviderPushNotificationResponseContent getSelectedProvider( RequestOptions requestOptions) { @@ -267,7 +326,7 @@ public GetGuardianFactorsProviderPushNotificationResponseContent getSelectedProv } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public SetGuardianFactorsProviderPushNotificationResponseContent setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request) { @@ -275,7 +334,7 @@ public SetGuardianFactorsProviderPushNotificationResponseContent setProvider( } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public SetGuardianFactorsProviderPushNotificationResponseContent setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java index 3977ed15a..440e07993 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPhoneClient.java @@ -44,23 +44,27 @@ public RawPhoneClient(ClientOptions clientOptions) { } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public ManagementApiHttpResponse getMessageTypes() { return getMessageTypes(null); } /** - * Retrieve list of <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">phone-type MFA factors</a> (i.e., sms and voice) that are enabled for your tenant. + * Retrieve list of phone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public ManagementApiHttpResponse getMessageTypes( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/message-types") - .build(); + .addPathSegments("guardian/factors/phone/message-types"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -102,7 +106,7 @@ public ManagementApiHttpResponsephone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public ManagementApiHttpResponse setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request) { @@ -110,14 +114,18 @@ public ManagementApiHttpResponsephone-type MFA factors (i.e., sms and voice) that are enabled for your tenant. */ public ManagementApiHttpResponse setMessageTypes( SetGuardianFactorPhoneMessageTypesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/message-types") - .build(); + .addPathSegments("guardian/factors/phone/message-types"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -126,7 +134,7 @@ public ManagementApiHttpResponseConfigure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse getTwilioProvider() { return getTwilioProvider(null); } /** - * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-sms-voice-notifications-mfa">Configure SMS and Voice Notifications for MFA</a>. + * Retrieve configuration details for a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse getTwilioProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/providers/twilio") - .build(); + .addPathSegments("guardian/factors/phone/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -230,7 +242,7 @@ public ManagementApiHttpResponseConfigure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse setTwilioProvider() { return setTwilioProvider( @@ -238,7 +250,16 @@ public ManagementApiHttpResponseConfigure SMS and Voice Notifications for MFA. + */ + public ManagementApiHttpResponse setTwilioProvider( + RequestOptions requestOptions) { + return setTwilioProvider( + SetGuardianFactorsProviderPhoneTwilioRequestContent.builder().build(), requestOptions); + } + + /** + * Update the configuration of a Twilio phone provider that has been set up in your tenant. To learn more, review Configure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request) { @@ -246,14 +267,18 @@ public ManagementApiHttpResponseConfigure SMS and Voice Notifications for MFA. */ public ManagementApiHttpResponse setTwilioProvider( SetGuardianFactorsProviderPhoneTwilioRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/providers/twilio") - .build(); + .addPathSegments("guardian/factors/phone/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -262,7 +287,7 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse getSelectedProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/selected-provider") - .build(); + .addPathSegments("guardian/factors/phone/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -369,10 +398,14 @@ public ManagementApiHttpResponse public ManagementApiHttpResponse setProvider( SetGuardianFactorsProviderPhoneRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/selected-provider") - .build(); + .addPathSegments("guardian/factors/phone/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -381,7 +414,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -435,12 +468,16 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse getTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/templates") - .build(); + .addPathSegments("guardian/factors/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -494,10 +531,14 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse setTemplates( SetGuardianFactorPhoneTemplatesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/phone/templates") - .build(); + .addPathSegments("guardian/factors/phone/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -506,7 +547,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java index a7eff43a9..3bf707184 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/RawPushNotificationClient.java @@ -61,12 +61,16 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse getApnsProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -115,6 +119,17 @@ public ManagementApiHttpResponse setApnsProvider( + RequestOptions requestOptions) { + return setApnsProvider( + SetGuardianFactorsProviderPushNotificationApnsRequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -128,10 +143,14 @@ public ManagementApiHttpResponse setApnsProvider( SetGuardianFactorsProviderPushNotificationApnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/apns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/apns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +159,7 @@ public ManagementApiHttpResponse + updateApnsProvider(RequestOptions requestOptions) { + return updateApnsProvider( + UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication APNS provider associated with your tenant. */ @@ -207,10 +237,14 @@ public ManagementApiHttpResponse { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -219,7 +253,7 @@ public ManagementApiHttpResponse> setFcmProvider() { .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public ManagementApiHttpResponse> setFcmProvider(RequestOptions requestOptions) { + return setFcmProvider( + SetGuardianFactorsProviderPushNotificationFcmRequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -283,10 +327,14 @@ public ManagementApiHttpResponse> setFcmProvider( */ public ManagementApiHttpResponse> setFcmProvider( SetGuardianFactorsProviderPushNotificationFcmRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcm") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcm"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -295,7 +343,7 @@ public ManagementApiHttpResponse> setFcmProvider( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -345,6 +393,16 @@ public ManagementApiHttpResponse> updateFcmProvider() { .build()); } + /** + * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. + */ + public ManagementApiHttpResponse> updateFcmProvider(RequestOptions requestOptions) { + return updateFcmProvider( + UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication FCM provider associated with your tenant. */ @@ -358,10 +416,14 @@ public ManagementApiHttpResponse> updateFcmProvider( */ public ManagementApiHttpResponse> updateFcmProvider( UpdateGuardianFactorsProviderPushNotificationFcmRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcm") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcm"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -370,7 +432,7 @@ public ManagementApiHttpResponse> updateFcmProvider( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -420,6 +482,16 @@ public ManagementApiHttpResponse> setFcmv1Provider() { .build()); } + /** + * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public ManagementApiHttpResponse> setFcmv1Provider(RequestOptions requestOptions) { + return setFcmv1Provider( + SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.builder() + .build(), + requestOptions); + } + /** * Overwrite all configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -433,10 +505,14 @@ public ManagementApiHttpResponse> setFcmv1Provider( */ public ManagementApiHttpResponse> setFcmv1Provider( SetGuardianFactorsProviderPushNotificationFcmv1RequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcmv1") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcmv1"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -445,7 +521,7 @@ public ManagementApiHttpResponse> setFcmv1Provider( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -495,6 +571,16 @@ public ManagementApiHttpResponse> updateFcmv1Provider() { .build()); } + /** + * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. + */ + public ManagementApiHttpResponse> updateFcmv1Provider(RequestOptions requestOptions) { + return updateFcmv1Provider( + UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.builder() + .build(), + requestOptions); + } + /** * Modify configuration details of the multi-factor authentication FCMV1 provider associated with your tenant. */ @@ -508,10 +594,14 @@ public ManagementApiHttpResponse> updateFcmv1Provider( */ public ManagementApiHttpResponse> updateFcmv1Provider( UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/fcmv1") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/fcmv1"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -520,7 +610,7 @@ public ManagementApiHttpResponse> updateFcmv1Provider( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -563,23 +653,27 @@ public ManagementApiHttpResponse> updateFcmv1Provider( } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public ManagementApiHttpResponse getSnsProvider() { return getSnsProvider(null); } /** - * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Retrieve configuration details for an AWS SNS push notification provider that has been enabled for MFA. To learn more, review Configure Push Notifications for MFA. */ public ManagementApiHttpResponse getSnsProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -621,7 +715,7 @@ public ManagementApiHttpResponse g } /** - * Configure the <a href="https://auth0.com/docs/multifactor-authentication/developer/sns-configuration">AWS SNS push notification provider configuration</a> (subscription required). + * Configure the AWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse setSnsProvider() { return setSnsProvider(SetGuardianFactorsProviderPushNotificationSnsRequestContent.builder() @@ -629,7 +723,18 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). + */ + public ManagementApiHttpResponse setSnsProvider( + RequestOptions requestOptions) { + return setSnsProvider( + SetGuardianFactorsProviderPushNotificationSnsRequestContent.builder() + .build(), + requestOptions); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -637,14 +742,18 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse setSnsProvider( SetGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -653,7 +762,7 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse updateSnsProvider() { @@ -705,7 +814,18 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). + */ + public ManagementApiHttpResponse updateSnsProvider( + RequestOptions requestOptions) { + return updateSnsProvider( + UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.builder() + .build(), + requestOptions); + } + + /** + * Configure the AWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request) { @@ -713,14 +833,18 @@ public ManagementApiHttpResponseAWS SNS push notification provider configuration (subscription required). */ public ManagementApiHttpResponse updateSnsProvider( UpdateGuardianFactorsProviderPushNotificationSnsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/providers/sns") - .build(); + .addPathSegments("guardian/factors/push-notification/providers/sns"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -729,7 +853,7 @@ public ManagementApiHttpResponseConfigure Push Notifications for MFA. */ public ManagementApiHttpResponse getSelectedProvider() { return getSelectedProvider(null); } /** - * Modify the push notification provider configured for your tenant. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors/configure-push-notifications-for-mfa">Configure Push Notifications for MFA</a>. + * Modify the push notification provider configured for your tenant. For more information, review Configure Push Notifications for MFA. */ public ManagementApiHttpResponse getSelectedProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/selected-provider") - .build(); + .addPathSegments("guardian/factors/push-notification/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -831,7 +959,7 @@ public ManagementApiHttpResponseConfigure Push Notifications for MFA. */ public ManagementApiHttpResponse setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request) { @@ -839,14 +967,18 @@ public ManagementApiHttpResponseConfigure Push Notifications for MFA. */ public ManagementApiHttpResponse setProvider( SetGuardianFactorsProviderPushNotificationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/push-notification/selected-provider") - .build(); + .addPathSegments("guardian/factors/push-notification/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -855,7 +987,7 @@ public ManagementApiHttpResponseA new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead. + * Retrieve the Twilio SMS provider configuration (subscription required). + *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public ManagementApiHttpResponse getTwilioProvider() { @@ -49,18 +49,22 @@ public ManagementApiHttpResponseA new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead. + * Retrieve the Twilio SMS provider configuration (subscription required). + *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public ManagementApiHttpResponse getTwilioProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/providers/twilio") - .build(); + .addPathSegments("guardian/factors/sms/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -102,8 +106,8 @@ public ManagementApiHttpResponse<b>Previous functionality</b>: Update the Twilio SMS provider configuration. + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public ManagementApiHttpResponse setTwilioProvider() { @@ -112,8 +116,19 @@ public ManagementApiHttpResponse<b>Previous functionality</b>: Update the Twilio SMS provider configuration. + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
    +     * 
    + */ + public ManagementApiHttpResponse setTwilioProvider( + RequestOptions requestOptions) { + return setTwilioProvider( + SetGuardianFactorsProviderSmsTwilioRequestContent.builder().build(), requestOptions); + } + + /** + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public ManagementApiHttpResponse setTwilioProvider( @@ -122,16 +137,20 @@ public ManagementApiHttpResponse<b>Previous functionality</b>: Update the Twilio SMS provider configuration. + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public ManagementApiHttpResponse setTwilioProvider( SetGuardianFactorsProviderSmsTwilioRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/providers/twilio") - .build(); + .addPathSegments("guardian/factors/sms/providers/twilio"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +159,7 @@ public ManagementApiHttpResponse<b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant. + * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead. + *
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public ManagementApiHttpResponse getSelectedProvider() { @@ -192,18 +211,22 @@ public ManagementApiHttpResponse g } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public ManagementApiHttpResponse getSelectedProvider( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/selected-provider") - .build(); + .addPathSegments("guardian/factors/sms/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -245,8 +268,8 @@ public ManagementApiHttpResponse g } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public ManagementApiHttpResponse setProvider( @@ -255,16 +278,20 @@ public ManagementApiHttpResponse s } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public ManagementApiHttpResponse setProvider( SetGuardianFactorsProviderSmsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/selected-provider") - .build(); + .addPathSegments("guardian/factors/sms/selected-provider"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -273,7 +300,7 @@ public ManagementApiHttpResponse s throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -316,8 +343,8 @@ public ManagementApiHttpResponse s } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public ManagementApiHttpResponse getTemplates() { @@ -325,18 +352,22 @@ public ManagementApiHttpResponse g } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public ManagementApiHttpResponse getTemplates( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/templates") - .build(); + .addPathSegments("guardian/factors/sms/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -378,8 +409,8 @@ public ManagementApiHttpResponse g } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public ManagementApiHttpResponse setTemplates( @@ -388,16 +419,20 @@ public ManagementApiHttpResponse s } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public ManagementApiHttpResponse setTemplates( SetGuardianFactorSmsTemplatesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/sms/templates") - .build(); + .addPathSegments("guardian/factors/sms/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -406,7 +441,7 @@ public ManagementApiHttpResponse s throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java index 5963a5de3..9120fdab9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/SmsClient.java @@ -33,8 +33,8 @@ public RawSmsClient withRawResponse() { } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public GetGuardianFactorsProviderSmsTwilioResponseContent getTwilioProvider() { @@ -42,8 +42,8 @@ public GetGuardianFactorsProviderSmsTwilioResponseContent getTwilioProvider() { } /** - * Retrieve the <a href="https://auth0.com/docs/multifactor-authentication/twilio-configuration">Twilio SMS provider configuration</a> (subscription required). - *
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (<a href='https://auth0.com/docs/api/management/v2/#!/Guardian/get_twilio'>phone Twilio configuration</a>). It has the same payload as this one. Please use it instead.
    +     * Retrieve the Twilio SMS provider configuration (subscription required).
    +     * 
    A new endpoint is available to retrieve the Twilio configuration related to phone factors (phone Twilio configuration). It has the same payload as this one. Please use it instead.
          * 
    */ public GetGuardianFactorsProviderSmsTwilioResponseContent getTwilioProvider(RequestOptions requestOptions) { @@ -51,8 +51,8 @@ public GetGuardianFactorsProviderSmsTwilioResponseContent getTwilioProvider(Requ } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider() { @@ -60,8 +60,17 @@ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider() { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
    +     * 
    + */ + public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider(RequestOptions requestOptions) { + return this.rawClient.setTwilioProvider(requestOptions).body(); + } + + /** + * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint. + *
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider( @@ -70,8 +79,8 @@ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-twilio">Update Twilio phone configuration</a> endpoint. - *
    <b>Previous functionality</b>: Update the Twilio SMS provider configuration.
    +     * This endpoint has been deprecated. To complete this action, use the Update Twilio phone configuration endpoint.
    +     * 
    Previous functionality: Update the Twilio SMS provider configuration.
          * 
    */ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider( @@ -80,8 +89,8 @@ public SetGuardianFactorsProviderSmsTwilioResponseContent setTwilioProvider( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public GetGuardianFactorsProviderSmsResponseContent getSelectedProvider() { @@ -89,8 +98,8 @@ public GetGuardianFactorsProviderSmsResponseContent getSelectedProvider() { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-phone-providers">Retrieve phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve phone configuration endpoint instead.
    +     * 
    Previous functionality: Retrieve details for the multi-factor authentication SMS provider configured for your tenant.
          * 
    */ public GetGuardianFactorsProviderSmsResponseContent getSelectedProvider(RequestOptions requestOptions) { @@ -98,8 +107,8 @@ public GetGuardianFactorsProviderSmsResponseContent getSelectedProvider(RequestO } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public SetGuardianFactorsProviderSmsResponseContent setProvider( @@ -108,8 +117,8 @@ public SetGuardianFactorsProviderSmsResponseContent setProvider( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-phone-providers">Update phone configuration</a> endpoint instead. - *
    <b>Previous functionality</b>: Update the multi-factor authentication SMS provider configuration in your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Update phone configuration endpoint instead.
    +     * 
    Previous functionality: Update the multi-factor authentication SMS provider configuration in your tenant.
          * 
    */ public SetGuardianFactorsProviderSmsResponseContent setProvider( @@ -118,8 +127,8 @@ public SetGuardianFactorsProviderSmsResponseContent setProvider( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public GetGuardianFactorSmsTemplatesResponseContent getTemplates() { @@ -127,8 +136,8 @@ public GetGuardianFactorSmsTemplatesResponseContent getTemplates() { } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/get-factor-phone-templates">Retrieve enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous function</b>: Retrieve details of SMS enrollment and verification templates configured for your tenant.
    +     * This endpoint has been deprecated. To complete this action, use the Retrieve enrollment and verification phone templates endpoint instead.
    +     * 
    Previous function: Retrieve details of SMS enrollment and verification templates configured for your tenant.
          * 
    */ public GetGuardianFactorSmsTemplatesResponseContent getTemplates(RequestOptions requestOptions) { @@ -136,8 +145,8 @@ public GetGuardianFactorSmsTemplatesResponseContent getTemplates(RequestOptions } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public SetGuardianFactorSmsTemplatesResponseContent setTemplates( @@ -146,8 +155,8 @@ public SetGuardianFactorSmsTemplatesResponseContent setTemplates( } /** - * This endpoint has been deprecated. To complete this action, use the <a href="https://auth0.com/docs/api/management/v2/guardian/put-factor-phone-templates">Update enrollment and verification phone templates</a> endpoint instead. - *
    <b>Previous functionality</b>: Customize the messages sent to complete SMS enrollment and verification.
    +     * This endpoint has been deprecated. To complete this action, use the Update enrollment and verification phone templates endpoint instead.
    +     * 
    Previous functionality: Customize the messages sent to complete SMS enrollment and verification.
          * 
    */ public SetGuardianFactorSmsTemplatesResponseContent setTemplates( diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java index 48d8f0434..6033e08a5 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/AsyncRawSettingsClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -124,6 +128,14 @@ public CompletableFuture> set( + RequestOptions requestOptions) { + return set(SetGuardianFactorDuoSettingsRequestContent.builder().build(), requestOptions); + } + /** * Set the DUO account configuration and other properties specific to this factor. */ @@ -137,10 +149,14 @@ public CompletableFuture> set( SetGuardianFactorDuoSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -149,7 +165,7 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateGuardianFactorDuoSettingsRequestContent.builder().build(), requestOptions); + } + public CompletableFuture> update( UpdateGuardianFactorDuoSettingsRequestContent request) { return update(request, null); @@ -222,10 +243,14 @@ public CompletableFuture> update( UpdateGuardianFactorDuoSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -234,7 +259,7 @@ public CompletableFuture set() { return this.rawClient.set().thenApply(response -> response.body()); } + /** + * Set the DUO account configuration and other properties specific to this factor. + */ + public CompletableFuture set(RequestOptions requestOptions) { + return this.rawClient.set(requestOptions).thenApply(response -> response.body()); + } + /** * Set the DUO account configuration and other properties specific to this factor. */ @@ -70,6 +77,10 @@ public CompletableFuture update( return this.rawClient.update().thenApply(response -> response.body()); } + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture update( UpdateGuardianFactorDuoSettingsRequestContent request) { return this.rawClient.update(request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java index 421dd9a52..c14fc3938 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/RawSettingsClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse ge * Retrieves the DUO account and factor configuration. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -99,6 +103,13 @@ public ManagementApiHttpResponse se return set(SetGuardianFactorDuoSettingsRequestContent.builder().build()); } + /** + * Set the DUO account configuration and other properties specific to this factor. + */ + public ManagementApiHttpResponse set(RequestOptions requestOptions) { + return set(SetGuardianFactorDuoSettingsRequestContent.builder().build(), requestOptions); + } + /** * Set the DUO account configuration and other properties specific to this factor. */ @@ -112,10 +123,14 @@ public ManagementApiHttpResponse se */ public ManagementApiHttpResponse set( SetGuardianFactorDuoSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -124,7 +139,7 @@ public ManagementApiHttpResponse se throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -170,6 +185,11 @@ public ManagementApiHttpResponse return update(UpdateGuardianFactorDuoSettingsRequestContent.builder().build()); } + public ManagementApiHttpResponse update( + RequestOptions requestOptions) { + return update(UpdateGuardianFactorDuoSettingsRequestContent.builder().build(), requestOptions); + } + public ManagementApiHttpResponse update( UpdateGuardianFactorDuoSettingsRequestContent request) { return update(request, null); @@ -177,10 +197,14 @@ public ManagementApiHttpResponse public ManagementApiHttpResponse update( UpdateGuardianFactorDuoSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("guardian/factors/duo/settings") - .build(); + .addPathSegments("guardian/factors/duo/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -189,7 +213,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/SettingsClient.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/SettingsClient.java index 043252cdf..a1d446c78 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/SettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/SettingsClient.java @@ -49,6 +49,13 @@ public SetGuardianFactorDuoSettingsResponseContent set() { return this.rawClient.set().body(); } + /** + * Set the DUO account configuration and other properties specific to this factor. + */ + public SetGuardianFactorDuoSettingsResponseContent set(RequestOptions requestOptions) { + return this.rawClient.set(requestOptions).body(); + } + /** * Set the DUO account configuration and other properties specific to this factor. */ @@ -68,6 +75,10 @@ public UpdateGuardianFactorDuoSettingsResponseContent update() { return this.rawClient.update().body(); } + public UpdateGuardianFactorDuoSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + public UpdateGuardianFactorDuoSettingsResponseContent update( UpdateGuardianFactorDuoSettingsRequestContent request) { return this.rawClient.update(request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/SetGuardianFactorDuoSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/SetGuardianFactorDuoSettingsRequestContent.java index b830c8788..3d5979e80 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/SetGuardianFactorDuoSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/SetGuardianFactorDuoSettingsRequestContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public SetGuardianFactorDuoSettingsRequestContent build() { return new SetGuardianFactorDuoSettingsRequestContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/UpdateGuardianFactorDuoSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/UpdateGuardianFactorDuoSettingsRequestContent.java index aac1ee029..df8bed36b 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/UpdateGuardianFactorDuoSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/duo/types/UpdateGuardianFactorDuoSettingsRequestContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public UpdateGuardianFactorDuoSettingsRequestContent build() { return new UpdateGuardianFactorDuoSettingsRequestContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneMessageTypesRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneMessageTypesRequestContent.java index 09209a2db..47ee59c7b 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneMessageTypesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneMessageTypesRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllMessageTypes(List public SetGuardianFactorPhoneMessageTypesRequestContent build() { return new SetGuardianFactorPhoneMessageTypesRequestContent(messageTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java index 8dd8996bf..0ae80d523 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorPhoneTemplatesRequestContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { SetGuardianFactorPhoneTemplatesRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public SetGuardianFactorPhoneTemplatesRequestContent build() { return new SetGuardianFactorPhoneTemplatesRequestContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java index f11acb96f..b3acce3ec 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorSmsTemplatesRequestContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { SetGuardianFactorSmsTemplatesRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public SetGuardianFactorSmsTemplatesRequestContent build() { return new SetGuardianFactorSmsTemplatesRequestContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneRequestContent.java index db7494815..5506f13bf 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneRequestContent.java @@ -73,6 +73,10 @@ public interface ProviderStage { public interface _FinalStage { SetGuardianFactorsProviderPhoneRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -101,5 +105,17 @@ public _FinalStage provider(@NotNull GuardianFactorsProviderSmsProviderEnum prov public SetGuardianFactorsProviderPhoneRequestContent build() { return new SetGuardianFactorsProviderPhoneRequestContent(provider, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneTwilioRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneTwilioRequestContent.java index fd52ad20f..eaa5d94fd 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneTwilioRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPhoneTwilioRequestContent.java @@ -314,5 +314,15 @@ public SetGuardianFactorsProviderPhoneTwilioRequestContent build() { return new SetGuardianFactorsProviderPhoneTwilioRequestContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationApnsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationApnsRequestContent.java index bb64d5a9e..5f2f21cc3 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationApnsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationApnsRequestContent.java @@ -204,5 +204,15 @@ public SetGuardianFactorsProviderPushNotificationApnsRequestContent build() { return new SetGuardianFactorsProviderPushNotificationApnsRequestContent( sandbox, bundleId, p12, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmRequestContent.java index c1222a5c4..b9b6fb06c 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmRequestContent.java @@ -126,5 +126,15 @@ public Builder serverKey(com.auth0.client.mgmt.core.Nullable serverKey) public SetGuardianFactorsProviderPushNotificationFcmRequestContent build() { return new SetGuardianFactorsProviderPushNotificationFcmRequestContent(serverKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.java index 00e72f513..433aea78e 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationFcmv1RequestContent.java @@ -127,5 +127,15 @@ public SetGuardianFactorsProviderPushNotificationFcmv1RequestContent build() { return new SetGuardianFactorsProviderPushNotificationFcmv1RequestContent( serverCredentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationRequestContent.java index 2c04c266d..4a5e84525 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationRequestContent.java @@ -74,6 +74,10 @@ public interface ProviderStage { public interface _FinalStage { SetGuardianFactorsProviderPushNotificationRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -102,5 +106,17 @@ public _FinalStage provider(@NotNull GuardianFactorsProviderPushNotificationProv public SetGuardianFactorsProviderPushNotificationRequestContent build() { return new SetGuardianFactorsProviderPushNotificationRequestContent(provider, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationSnsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationSnsRequestContent.java index badfad30f..6db63a629 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationSnsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderPushNotificationSnsRequestContent.java @@ -356,5 +356,15 @@ public SetGuardianFactorsProviderPushNotificationSnsRequestContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsRequestContent.java index 7d041b21f..937ea11c0 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsRequestContent.java @@ -73,6 +73,10 @@ public interface ProviderStage { public interface _FinalStage { SetGuardianFactorsProviderSmsRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -101,5 +105,17 @@ public _FinalStage provider(@NotNull GuardianFactorsProviderSmsProviderEnum prov public SetGuardianFactorsProviderSmsRequestContent build() { return new SetGuardianFactorsProviderSmsRequestContent(provider, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsTwilioRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsTwilioRequestContent.java index df428ac9b..80c379ee5 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsTwilioRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/SetGuardianFactorsProviderSmsTwilioRequestContent.java @@ -314,5 +314,15 @@ public SetGuardianFactorsProviderSmsTwilioRequestContent build() { return new SetGuardianFactorsProviderSmsTwilioRequestContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.java index 64ebbc400..922526e76 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationApnsRequestContent.java @@ -204,5 +204,15 @@ public UpdateGuardianFactorsProviderPushNotificationApnsRequestContent build() { return new UpdateGuardianFactorsProviderPushNotificationApnsRequestContent( sandbox, bundleId, p12, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.java index 26c1b64e2..6f92a321d 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmRequestContent.java @@ -126,5 +126,15 @@ public Builder serverKey(com.auth0.client.mgmt.core.Nullable serverKey) public UpdateGuardianFactorsProviderPushNotificationFcmRequestContent build() { return new UpdateGuardianFactorsProviderPushNotificationFcmRequestContent(serverKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.java index 7c62c7240..f2867635f 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent.java @@ -127,5 +127,15 @@ public UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent build() return new UpdateGuardianFactorsProviderPushNotificationFcmv1RequestContent( serverCredentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.java index 1b2f29eed..40a64c061 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/factors/types/UpdateGuardianFactorsProviderPushNotificationSnsRequestContent.java @@ -356,5 +356,15 @@ public UpdateGuardianFactorsProviderPushNotificationSnsRequestContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java index 680a9edde..e55872ce9 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/types/CreateGuardianEnrollmentTicketRequestContent.java @@ -91,7 +91,7 @@ public Optional getFactor() { } /** - * @return Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.<br />Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. + * @return Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages. */ @JsonProperty("allow_multiple_enrollments") public Optional getAllowMultipleEnrollments() { @@ -146,6 +146,10 @@ public interface UserIdStage { public interface _FinalStage { CreateGuardianEnrollmentTicketRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    alternate email to which the enrollment email will be sent. Optional - by default, the email will be sent to the user's default address

    */ @@ -172,7 +176,7 @@ public interface _FinalStage { _FinalStage factor(GuardianEnrollmentFactorEnum factor); /** - *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.<br />Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    + *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    */ _FinalStage allowMultipleEnrollments(Optional allowMultipleEnrollments); @@ -222,7 +226,7 @@ public _FinalStage userId(@NotNull String userId) { } /** - *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.<br />Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    + *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -232,7 +236,7 @@ public _FinalStage allowMultipleEnrollments(Boolean allowMultipleEnrollments) { } /** - *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.<br />Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    + *

    Optional. Allows a user who has previously enrolled in MFA to enroll with additional factors.Note: Parameter can only be used with Universal Login; it cannot be used with Classic Login or custom MFA pages.

    */ @java.lang.Override @JsonSetter(value = "allow_multiple_enrollments", nulls = Nulls.SKIP) @@ -319,5 +323,17 @@ public CreateGuardianEnrollmentTicketRequestContent build() { return new CreateGuardianEnrollmentTicketRequestContent( userId, email, sendMail, emailLocale, factor, allowMultipleEnrollments, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java b/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java index 1f50447d3..b20967eb3 100644 --- a/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/guardian/types/SetGuardianFactorRequestContent.java @@ -75,6 +75,10 @@ public interface EnabledStage { public interface _FinalStage { SetGuardianFactorRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -108,5 +112,17 @@ public _FinalStage enabled(boolean enabled) { public SetGuardianFactorRequestContent build() { return new SetGuardianFactorRequestContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java b/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java index 29879ba8e..1dc678acf 100644 --- a/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java +++ b/src/main/java/com/auth0/client/mgmt/hooks/AsyncRawSecretsClient.java @@ -52,14 +52,18 @@ public CompletableFuture>> get(Str */ public CompletableFuture>> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -141,12 +145,16 @@ public CompletableFuture> create(String id, Map< */ public CompletableFuture> create( String id, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -155,7 +163,7 @@ public CompletableFuture> create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -235,12 +243,16 @@ public CompletableFuture> delete(String id, List */ public CompletableFuture> delete( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -249,7 +261,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -324,12 +336,16 @@ public CompletableFuture> update(String id, Map< */ public CompletableFuture> update( String id, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -338,7 +354,7 @@ public CompletableFuture> update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java b/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java index aa30296e0..7a1fddb05 100644 --- a/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java +++ b/src/main/java/com/auth0/client/mgmt/hooks/RawSecretsClient.java @@ -47,14 +47,18 @@ public ManagementApiHttpResponse> get(String id) { * Retrieve a hook's secrets by the ID of the hook. */ public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -113,12 +117,16 @@ public ManagementApiHttpResponse create(String id, Map req */ public ManagementApiHttpResponse create( String id, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -127,7 +135,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -183,12 +191,16 @@ public ManagementApiHttpResponse delete(String id, List request) { * Delete one or more existing secrets for a given hook. Accepts an array of secret names to delete. */ public ManagementApiHttpResponse delete(String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -197,7 +209,7 @@ public ManagementApiHttpResponse delete(String id, List request, R throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -251,12 +263,16 @@ public ManagementApiHttpResponse update(String id, Map req */ public ManagementApiHttpResponse update( String id, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("hooks") .addPathSegment(id) - .addPathSegments("secrets") - .build(); + .addPathSegments("secrets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -265,7 +281,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java index 03417da76..83a2e1ab6 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawErrorsClient.java @@ -47,14 +47,18 @@ public CompletableFuture> get(Strin */ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") .addPathSegment(id) - .addPathSegments("errors") - .build(); + .addPathSegments("errors"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java index ed62d74e1..89cd124c5 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawUsersExportsClient.java @@ -44,6 +44,14 @@ public CompletableFuture> create( + RequestOptions requestOptions) { + return create(CreateExportUsersRequestContent.builder().build(), requestOptions); + } + /** * Export all users to a file via a long-running job. */ @@ -57,10 +65,14 @@ public CompletableFuture> create( CreateExportUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-exports") - .build(); + .addPathSegments("jobs/users-exports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -69,7 +81,7 @@ public CompletableFutureemail_verified
    is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CompletableFuture> create( File users, CreateImportUsersRequestContent request) { @@ -53,14 +53,18 @@ public CompletableFutureemail_verified
    is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CompletableFuture> create( File users, CreateImportUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); try { String usersMimeType = Files.probeContentType(users.toPath()); @@ -91,7 +95,7 @@ public CompletableFuture> create( InputStream stream, String filename) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); FileStream fs = new FileStream(stream, filename, null); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); Request okhttpRequest = _requestBuilder.build(); @@ -252,16 +255,15 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { public CompletableFuture> create( InputStream stream, String filename, MediaType mediaType) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); FileStream fs = new FileStream(stream, filename, mediaType); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); Request okhttpRequest = _requestBuilder.build(); @@ -335,16 +337,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { public CompletableFuture> create( InputStream stream, String filename, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } FileStream fs = new FileStream(stream, filename, null); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(requestOptions))); Request okhttpRequest = _requestBuilder.build(); @@ -421,16 +427,20 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { public CompletableFuture> create( InputStream stream, String filename, MediaType mediaType, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } FileStream fs = new FileStream(stream, filename, mediaType); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(requestOptions))); Request okhttpRequest = _requestBuilder.build(); diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java index 067880b49..28d51b77b 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncRawVerificationEmailClient.java @@ -38,7 +38,7 @@ public AsyncRawVerificationEmailClient(ClientOptions clientOptions) { } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CompletableFuture> create( @@ -47,15 +47,19 @@ public CompletableFutureverify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CompletableFuture> create( CreateVerificationEmailRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/verification-email") - .build(); + .addPathSegments("jobs/verification-email"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -64,7 +68,7 @@ public CompletableFuture create() { return this.rawClient.create().thenApply(response -> response.body()); } + /** + * Export all users to a file via a long-running job. + */ + public CompletableFuture create(RequestOptions requestOptions) { + return this.rawClient.create(requestOptions).thenApply(response -> response.body()); + } + /** * Export all users to a file via a long-running job. */ diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncUsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncUsersImportsClient.java index 3e5e32661..43e2cdc7a 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncUsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncUsersImportsClient.java @@ -30,7 +30,7 @@ public AsyncRawUsersImportsClient withRawResponse() { } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CompletableFuture create( File users, CreateImportUsersRequestContent request) { @@ -38,7 +38,7 @@ public CompletableFuture create( } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CompletableFuture create( File users, CreateImportUsersRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/jobs/AsyncVerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/AsyncVerificationEmailClient.java index 5533d81c9..2d40316fd 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/AsyncVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/AsyncVerificationEmailClient.java @@ -27,7 +27,7 @@ public AsyncRawVerificationEmailClient withRawResponse() { } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CompletableFuture create( @@ -36,7 +36,7 @@ public CompletableFuture create( } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CompletableFuture create( diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java index 0c939a325..a56fe5835 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawErrorsClient.java @@ -42,14 +42,18 @@ public ManagementApiHttpResponse get(String id) { * Retrieve error details of a failed job. */ public ManagementApiHttpResponse get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("jobs") .addPathSegment(id) - .addPathSegments("errors") - .build(); + .addPathSegments("errors"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java index 31e18ab67..dfbf7adc3 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersExportsClient.java @@ -40,6 +40,13 @@ public ManagementApiHttpResponse create() { return create(CreateExportUsersRequestContent.builder().build()); } + /** + * Export all users to a file via a long-running job. + */ + public ManagementApiHttpResponse create(RequestOptions requestOptions) { + return create(CreateExportUsersRequestContent.builder().build(), requestOptions); + } + /** * Export all users to a file via a long-running job. */ @@ -52,10 +59,14 @@ public ManagementApiHttpResponse create(Create */ public ManagementApiHttpResponse create( CreateExportUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-exports") - .build(); + .addPathSegments("jobs/users-exports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -64,7 +75,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java index 15d463e8c..c9f975a6c 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawUsersImportsClient.java @@ -41,7 +41,7 @@ public RawUsersImportsClient(ClientOptions clientOptions) { } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public ManagementApiHttpResponse create( File users, CreateImportUsersRequestContent request) { @@ -49,14 +49,18 @@ public ManagementApiHttpResponse create( } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public ManagementApiHttpResponse create( File users, CreateImportUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); try { String usersMimeType = Files.probeContentType(users.toPath()); @@ -87,7 +91,7 @@ public ManagementApiHttpResponse create( throw new RuntimeException(e); } Request.Builder _requestBuilder = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", multipartBodyBuilder.build()) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json"); @@ -137,16 +141,15 @@ public ManagementApiHttpResponse create( } public ManagementApiHttpResponse create(InputStream stream, String filename) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); FileStream fs = new FileStream(stream, filename, null); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); Request okhttpRequest = _requestBuilder.build(); @@ -193,16 +196,15 @@ public ManagementApiHttpResponse create(InputS public ManagementApiHttpResponse create( InputStream stream, String filename, MediaType mediaType) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); FileStream fs = new FileStream(stream, filename, mediaType); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(null))); Request okhttpRequest = _requestBuilder.build(); @@ -249,16 +251,20 @@ public ManagementApiHttpResponse create( public ManagementApiHttpResponse create( InputStream stream, String filename, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } FileStream fs = new FileStream(stream, filename, null); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(requestOptions))); Request okhttpRequest = _requestBuilder.build(); @@ -308,16 +314,20 @@ public ManagementApiHttpResponse create( public ManagementApiHttpResponse create( InputStream stream, String filename, MediaType mediaType, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/users-imports") - .build(); + .addPathSegments("jobs/users-imports"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } FileStream fs = new FileStream(stream, filename, mediaType); MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); multipartBodyBuilder.addFormDataPart("users", filename, fs.toRequestBody()); RequestBody body = multipartBodyBuilder.build(); Request.Builder _requestBuilder = new Request.Builder(); - _requestBuilder.url(httpUrl); + _requestBuilder.url(httpUrl.build()); _requestBuilder.method("POST", body); _requestBuilder.headers(Headers.of(this.clientOptions.headers(requestOptions))); Request okhttpRequest = _requestBuilder.build(); diff --git a/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java index f795154ae..72fe8976e 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/RawVerificationEmailClient.java @@ -34,7 +34,7 @@ public RawVerificationEmailClient(ClientOptions clientOptions) { } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public ManagementApiHttpResponse create( @@ -43,15 +43,19 @@ public ManagementApiHttpResponse create( } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public ManagementApiHttpResponse create( CreateVerificationEmailRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("jobs/verification-email") - .build(); + .addPathSegments("jobs/verification-email"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -60,7 +64,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/jobs/UsersExportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/UsersExportsClient.java index 1599e2ce5..5ee2294c2 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/UsersExportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/UsersExportsClient.java @@ -32,6 +32,13 @@ public CreateExportUsersResponseContent create() { return this.rawClient.create().body(); } + /** + * Export all users to a file via a long-running job. + */ + public CreateExportUsersResponseContent create(RequestOptions requestOptions) { + return this.rawClient.create(requestOptions).body(); + } + /** * Export all users to a file via a long-running job. */ diff --git a/src/main/java/com/auth0/client/mgmt/jobs/UsersImportsClient.java b/src/main/java/com/auth0/client/mgmt/jobs/UsersImportsClient.java index 19cd59ea9..e7eb6d840 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/UsersImportsClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/UsersImportsClient.java @@ -29,14 +29,14 @@ public RawUsersImportsClient withRawResponse() { } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CreateImportUsersResponseContent create(File users, CreateImportUsersRequestContent request) { return this.rawClient.create(users, request).body(); } /** - * Import users from a <a href="https://auth0.com/docs/users/references/bulk-import-database-schema-examples">formatted file</a> into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. + * Import users from a formatted file into a connection via a long-running job. When importing users, with or without upsert, the email_verified is set to false when the email address is added or updated. Users must verify their email address. To avoid this behavior, set email_verified to true in the imported data. */ public CreateImportUsersResponseContent create( File users, CreateImportUsersRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/jobs/VerificationEmailClient.java b/src/main/java/com/auth0/client/mgmt/jobs/VerificationEmailClient.java index d00c8a7be..2049462c8 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/VerificationEmailClient.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/VerificationEmailClient.java @@ -26,7 +26,7 @@ public RawVerificationEmailClient withRawResponse() { } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CreateVerificationEmailResponseContent create(CreateVerificationEmailRequestContent request) { @@ -34,7 +34,7 @@ public CreateVerificationEmailResponseContent create(CreateVerificationEmailRequ } /** - * Send an email to the specified user that asks them to click a link to <a href="https://auth0.com/docs/email/custom#verification-email">verify their email address</a>. + * Send an email to the specified user that asks them to click a link to verify their email address. *

    Note: You must have the Status toggle enabled for the verification email template for the email to be sent.

    */ public CreateVerificationEmailResponseContent create( diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateExportUsersRequestContent.java b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateExportUsersRequestContent.java index 363375c59..6a466cb01 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateExportUsersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateExportUsersRequestContent.java @@ -186,5 +186,15 @@ public Builder fields(List fields) { public CreateExportUsersRequestContent build() { return new CreateExportUsersRequestContent(connectionId, format, limit, fields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java index ef399ab4b..f37eec352 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateImportUsersRequestContent.java @@ -120,6 +120,10 @@ public interface ConnectionIdStage { public interface _FinalStage { CreateImportUsersRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether to update users if they already exist (true) or to ignore them (false).

    */ @@ -243,5 +247,17 @@ public CreateImportUsersRequestContent build() { return new CreateImportUsersRequestContent( connectionId, upsert, externalId, sendCompletionEmail, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java index 2aefa6c31..93bc00616 100644 --- a/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/jobs/types/CreateVerificationEmailRequestContent.java @@ -119,6 +119,10 @@ public interface UserIdStage { public interface _FinalStage { CreateVerificationEmailRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    client_id of the client (application). If no value provided, the global Client ID will be used.

    */ @@ -232,5 +236,17 @@ public CreateVerificationEmailRequestContent build() { return new CreateVerificationEmailRequestContent( userId, clientId, identity, organizationId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncEncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncEncryptionClient.java index fab4f4f50..443cedaad 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncEncryptionClient.java @@ -40,6 +40,13 @@ public CompletableFuture> list() { return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Retrieve details of all the encryption keys associated with your tenant. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details of all the encryption keys associated with your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java index 0d30c22b9..c934e084d 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawCustomSigningClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -135,10 +139,14 @@ public CompletableFuture> set( SetCustomSigningKeysRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -147,7 +155,7 @@ public CompletableFuture> delete() { * Delete entire jwks representation of custom signing keys. */ public CompletableFuture> delete(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java index 1d6508d0b..d22e3d05b 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawEncryptionClient.java @@ -58,6 +58,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListEncryptionKeysRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details of all the encryption keys associated with your tenant. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -177,10 +190,14 @@ public CompletableFuture> create( CreateEncryptionKeyRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/encryption") - .build(); + .addPathSegments("keys/encryption"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -189,7 +206,7 @@ public CompletableFuture> rekey() { * Perform rekeying operation on the key hierarchy. */ public CompletableFuture> rekey(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/encryption/rekey") - .build(); + .addPathSegments("keys/encryption/rekey"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -346,13 +367,17 @@ public CompletableFuture> get( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -436,11 +461,15 @@ public CompletableFuture> import_( String kid, ImportEncryptionKeyRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -449,7 +478,7 @@ public CompletableFuture> delete(String kid) { * Delete the custom provided encryption key with the given ID and move back to using native encryption key. */ public CompletableFuture> delete(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -613,14 +646,18 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { */ public CompletableFuture> createPublicWrappingKey(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") .addPathSegment(kid) - .addPathSegments("wrapping-key") - .build(); + .addPathSegments("wrapping-key"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java index 56f3529a7..cd7118145 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/AsyncRawSigningClient.java @@ -52,12 +52,16 @@ public CompletableFuture>> list() { * Retrieve details of all the application signing keys associated with your tenant. */ public CompletableFuture>> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/signing") - .build(); + .addPathSegments("keys/signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -134,12 +138,16 @@ public CompletableFuture> rotate( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/signing/rotate") - .build(); + .addPathSegments("keys/signing/rotate"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -212,13 +220,17 @@ public CompletableFuture> get( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/signing") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -295,14 +307,18 @@ public CompletableFuture> revoke( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/signing") .addPathSegment(kid) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/EncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/EncryptionClient.java index 0830d6d7d..242316be6 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/EncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/EncryptionClient.java @@ -39,6 +39,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Retrieve details of all the encryption keys associated with your tenant. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Retrieve details of all the encryption keys associated with your tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java index 6def929b2..239c5c483 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawCustomSigningClient.java @@ -46,12 +46,16 @@ public ManagementApiHttpResponse get() { * Get entire jwks representation of custom signing keys. */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -108,10 +112,14 @@ public ManagementApiHttpResponse set( */ public ManagementApiHttpResponse set( SetCustomSigningKeysRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -120,7 +128,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -176,12 +184,16 @@ public ManagementApiHttpResponse delete() { * Delete entire jwks representation of custom signing keys. */ public ManagementApiHttpResponse delete(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/custom-signing") - .build(); + .addPathSegments("keys/custom-signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java index 7f3857ad7..4106d5ed5 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawEncryptionClient.java @@ -53,6 +53,13 @@ public ManagementApiHttpResponse> list() { return list(ListEncryptionKeysRequestParameters.builder().build()); } + /** + * Retrieve details of all the encryption keys associated with your tenant. + */ + public ManagementApiHttpResponse> list(RequestOptions requestOptions) { + return list(ListEncryptionKeysRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details of all the encryption keys associated with your tenant. */ @@ -74,6 +81,11 @@ public ManagementApiHttpResponse> list( httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -142,10 +154,14 @@ public ManagementApiHttpResponse create( */ public ManagementApiHttpResponse create( CreateEncryptionKeyRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/encryption") - .build(); + .addPathSegments("keys/encryption"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -154,7 +170,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -213,12 +229,16 @@ public ManagementApiHttpResponse rekey() { * Perform rekeying operation on the key hierarchy. */ public ManagementApiHttpResponse rekey(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/encryption/rekey") - .build(); + .addPathSegments("keys/encryption/rekey"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -267,13 +287,17 @@ public ManagementApiHttpResponse get(String kid * Retrieve details of the encryption key with the given ID. */ public ManagementApiHttpResponse get(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -332,11 +356,15 @@ public ManagementApiHttpResponse import_( */ public ManagementApiHttpResponse import_( String kid, ImportEncryptionKeyRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -345,7 +373,7 @@ public ManagementApiHttpResponse import_( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -404,13 +432,17 @@ public ManagementApiHttpResponse delete(String kid) { * Delete the custom provided encryption key with the given ID and move back to using native encryption key. */ public ManagementApiHttpResponse delete(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -464,14 +496,18 @@ public ManagementApiHttpResponse createPublicWrappingKey( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/encryption") .addPathSegment(kid) - .addPathSegments("wrapping-key") - .build(); + .addPathSegments("wrapping-key"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/RawSigningClient.java b/src/main/java/com/auth0/client/mgmt/keys/RawSigningClient.java index 378745dd8..a4c618408 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/RawSigningClient.java +++ b/src/main/java/com/auth0/client/mgmt/keys/RawSigningClient.java @@ -48,12 +48,16 @@ public ManagementApiHttpResponse> list() { * Retrieve details of all the application signing keys associated with your tenant. */ public ManagementApiHttpResponse> list(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/signing") - .build(); + .addPathSegments("keys/signing"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -108,12 +112,16 @@ public ManagementApiHttpResponse rotate() { * Rotate the application signing key of your tenant. */ public ManagementApiHttpResponse rotate(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("keys/signing/rotate") - .build(); + .addPathSegments("keys/signing/rotate"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -164,13 +172,17 @@ public ManagementApiHttpResponse get(String kid) * Retrieve details of the application signing key with the given ID. */ public ManagementApiHttpResponse get(String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/signing") - .addPathSegment(kid) - .build(); + .addPathSegment(kid); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -225,14 +237,18 @@ public ManagementApiHttpResponse revoke(Strin */ public ManagementApiHttpResponse revoke( String kid, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("keys/signing") .addPathSegment(kid) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/CreateEncryptionKeyRequestContent.java b/src/main/java/com/auth0/client/mgmt/keys/types/CreateEncryptionKeyRequestContent.java index 980fad36a..ca2e3f159 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/CreateEncryptionKeyRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/CreateEncryptionKeyRequestContent.java @@ -71,6 +71,10 @@ public interface TypeStage { public interface _FinalStage { CreateEncryptionKeyRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage type(@NotNull CreateEncryptionKeyType type) { public CreateEncryptionKeyRequestContent build() { return new CreateEncryptionKeyRequestContent(type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java b/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java index d87c5b36d..7cd8794c7 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/ImportEncryptionKeyRequestContent.java @@ -76,6 +76,10 @@ public interface WrappedKeyStage { public interface _FinalStage { ImportEncryptionKeyRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage wrappedKey(@NotNull String wrappedKey) { public ImportEncryptionKeyRequestContent build() { return new ImportEncryptionKeyRequestContent(wrappedKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java b/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java index 1d7cedcba..f26cd287c 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListEncryptionKeysRequestParameters build() { return new ListEncryptionKeysRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/SetCustomSigningKeysRequestContent.java b/src/main/java/com/auth0/client/mgmt/keys/types/SetCustomSigningKeysRequestContent.java index 78249d6b9..22a3bd330 100644 --- a/src/main/java/com/auth0/client/mgmt/keys/types/SetCustomSigningKeysRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/keys/types/SetCustomSigningKeysRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllKeys(List keys) { public SetCustomSigningKeysRequestContent build() { return new SetCustomSigningKeysRequestContent(keys, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientGrantsClient.java index 780a65c64..bf787e0be 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncClientGrantsClient.java @@ -33,6 +33,11 @@ public CompletableFuture> list(Strin return this.rawClient.list(id).thenApply(response -> response.body()); } + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture> list( String id, ListOrganizationClientGrantsRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); 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 7f02e4015..d938c33fe 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncDiscoveryDomainsClient.java @@ -40,6 +40,14 @@ public CompletableFuture> list(S return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve list of all organization discovery domains associated with the specified organization. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve list of all organization discovery domains associated with the specified organization. */ @@ -118,7 +126,7 @@ public CompletableFuture delete(String id, String discoveryDomainId, Reque } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture update( String id, String discoveryDomainId) { @@ -126,7 +134,15 @@ public CompletableFuture updat } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + */ + public CompletableFuture update( + String id, String discoveryDomainId, RequestOptions requestOptions) { + return this.rawClient.update(id, discoveryDomainId, requestOptions).thenApply(response -> response.body()); + } + + /** + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request) { @@ -134,7 +150,7 @@ public CompletableFuture updat } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture update( String id, diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncEnabledConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncEnabledConnectionsClient.java index bfc2e0378..2a2e134b2 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncEnabledConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncEnabledConnectionsClient.java @@ -39,6 +39,14 @@ public CompletableFuture> list(String return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. */ @@ -57,7 +65,7 @@ public CompletableFuture> list( /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public CompletableFuture add( String id, AddOrganizationConnectionRequestContent request) { @@ -66,7 +74,7 @@ public CompletableFuture add( /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public CompletableFuture add( String id, AddOrganizationConnectionRequestContent request, RequestOptions requestOptions) { @@ -90,7 +98,7 @@ public CompletableFuture get( /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public CompletableFuture delete(String id, String connectionId) { return this.rawClient.delete(id, connectionId).thenApply(response -> response.body()); @@ -98,7 +106,7 @@ public CompletableFuture delete(String id, String connectionId) { /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public CompletableFuture delete(String id, String connectionId, RequestOptions requestOptions) { return this.rawClient.delete(id, connectionId, requestOptions).thenApply(response -> response.body()); @@ -111,6 +119,14 @@ public CompletableFuture update(Str return this.rawClient.update(id, connectionId).thenApply(response -> response.body()); } + /** + * Modify the details of a specific connection currently enabled for an Organization. + */ + public CompletableFuture update( + String id, String connectionId, RequestOptions requestOptions) { + return this.rawClient.update(id, connectionId, requestOptions).thenApply(response -> response.body()); + } + /** * Modify the details of a specific connection currently enabled for an Organization. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncInvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncInvitationsClient.java index e1e81ab65..f24724c1b 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncInvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncInvitationsClient.java @@ -32,14 +32,22 @@ public AsyncRawInvitationsClient withRawResponse() { } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture> list( String id, ListOrganizationInvitationsRequestParameters request) { @@ -47,7 +55,7 @@ public CompletableFuture> list( } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture> list( String id, ListOrganizationInvitationsRequestParameters request, RequestOptions requestOptions) { @@ -55,7 +63,7 @@ public CompletableFuture> list( } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture create( String id, CreateOrganizationInvitationRequestContent request) { @@ -63,7 +71,7 @@ public CompletableFuture create( } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture create( String id, CreateOrganizationInvitationRequestContent request, RequestOptions requestOptions) { @@ -74,6 +82,11 @@ public CompletableFuture get(String id return this.rawClient.get(id, invitationId).thenApply(response -> response.body()); } + public CompletableFuture get( + String id, String invitationId, RequestOptions requestOptions) { + return this.rawClient.get(id, invitationId, requestOptions).thenApply(response -> response.body()); + } + public CompletableFuture get( String id, String invitationId, GetOrganizationInvitationRequestParameters request) { return this.rawClient.get(id, invitationId, request).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java index 31c2ebc5c..6f6a130d6 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncMembersClient.java @@ -38,22 +38,22 @@ public AsyncRawMembersClient withRawResponse() { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); @@ -62,22 +62,46 @@ public CompletableFuture> list(String id) /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * List organization members. + * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    + *

    This endpoint supports two types of pagination:

    + *
      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *
    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture> list( String id, ListOrganizationMembersRequestParameters request) { @@ -87,22 +111,22 @@ public CompletableFuture> list( /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture> list( String id, ListOrganizationMembersRequestParameters request, RequestOptions requestOptions) { @@ -110,16 +134,16 @@ public CompletableFuture> list( } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public CompletableFuture create(String id, CreateOrganizationMemberRequestContent request) { return this.rawClient.create(id, request).thenApply(response -> response.body()); } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public CompletableFuture create( String id, CreateOrganizationMemberRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java index ff1f03932..08cd75b2e 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawClientGrantsClient.java @@ -51,6 +51,11 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationClientGrantsRequestParameters.builder().build(), requestOptions); + } + public CompletableFuture>> list( String id, ListOrganizationClientGrantsRequestParameters request) { return list(id, request, null); @@ -80,6 +85,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -175,12 +185,16 @@ public CompletableFuture> create( String id, AssociateOrganizationClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("client-grants") - .build(); + .addPathSegments("client-grants"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -189,7 +203,7 @@ public CompletableFuture> delete(String id, Stri public CompletableFuture> delete( String id, String grantId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("client-grants") - .addPathSegment(grantId) - .build(); + .addPathSegment(grantId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") 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 982ce062b..c32528605 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawDiscoveryDomainsClient.java @@ -60,6 +60,15 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list( + id, ListOrganizationDiscoveryDomainsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve list of all organization discovery domains associated with the specified organization. */ @@ -83,6 +92,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -186,12 +200,16 @@ public CompletableFuture> create( String id, CreateOrganizationDiscoveryDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("discovery-domains") - .build(); + .addPathSegments("discovery-domains"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -200,7 +218,7 @@ public CompletableFuture> getByName( String id, String discoveryDomain, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains/name") - .addPathSegment(discoveryDomain) - .build(); + .addPathSegment(discoveryDomain); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -382,15 +404,19 @@ public CompletableFuture> get( String id, String discoveryDomainId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -473,15 +499,19 @@ public CompletableFuture> delete(String id, Stri */ public CompletableFuture> delete( String id, String discoveryDomainId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -544,7 +574,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture> update( String id, String discoveryDomainId) { @@ -555,7 +585,19 @@ public CompletableFuturestatus field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + */ + public CompletableFuture> update( + String id, String discoveryDomainId, RequestOptions requestOptions) { + return update( + id, + discoveryDomainId, + UpdateOrganizationDiscoveryDomainRequestContent.builder().build(), + requestOptions); + } + + /** + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture> update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request) { @@ -563,20 +605,24 @@ public CompletableFuturestatus field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public CompletableFuture> update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -585,7 +631,7 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationConnectionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. */ @@ -78,6 +86,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -168,7 +181,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public CompletableFuture> add( String id, AddOrganizationConnectionRequestContent request) { @@ -177,16 +190,20 @@ public CompletableFuture<a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public CompletableFuture> add( String id, AddOrganizationConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("enabled_connections") - .build(); + .addPathSegments("enabled_connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +212,7 @@ public CompletableFuture> get( String id, String connectionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -346,7 +367,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public CompletableFuture> delete(String id, String connectionId) { return delete(id, connectionId, null); @@ -354,19 +375,23 @@ public CompletableFuture> delete(String id, Stri /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public CompletableFuture> delete( String id, String connectionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -439,6 +464,18 @@ public CompletableFuture> update( + String id, String connectionId, RequestOptions requestOptions) { + return update( + id, + connectionId, + UpdateOrganizationConnectionRequestContent.builder().build(), + requestOptions); + } + /** * Modify the details of a specific connection currently enabled for an Organization. */ @@ -455,13 +492,17 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -470,7 +511,7 @@ public CompletableFutureInvite Organization Members. */ public CompletableFuture>> list(String id) { return list(id, ListOrganizationInvitationsRequestParameters.builder().build()); } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationInvitationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture>> list( String id, ListOrganizationInvitationsRequestParameters request) { @@ -64,7 +72,7 @@ public CompletableFutureInvite Organization Members. */ public CompletableFuture>> list( String id, ListOrganizationInvitationsRequestParameters request, RequestOptions requestOptions) { @@ -90,6 +98,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -184,7 +197,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CompletableFuture> create( String id, CreateOrganizationInvitationRequestContent request) { @@ -192,16 +205,20 @@ public CompletableFutureInvite Organization Members. */ public CompletableFuture> create( String id, CreateOrganizationInvitationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("invitations") - .build(); + .addPathSegments("invitations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -210,7 +227,7 @@ public CompletableFuture> get( + String id, String invitationId, RequestOptions requestOptions) { + return get( + id, + invitationId, + GetOrganizationInvitationRequestParameters.builder().build(), + requestOptions); + } + public CompletableFuture> get( String id, String invitationId, GetOrganizationInvitationRequestParameters request) { return get(id, invitationId, request, null); @@ -314,6 +340,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -392,15 +423,19 @@ public CompletableFuture> delete(String id, Stri public CompletableFuture> delete( String id, String invitationId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("invitations") - .addPathSegment(invitationId) - .build(); + .addPathSegment(invitationId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java index da8efd521..5a0793f0e 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/AsyncRawMembersClient.java @@ -49,22 +49,22 @@ public AsyncRawMembersClient(ClientOptions clientOptions) { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture>> list(String id) { return list(id, ListOrganizationMembersRequestParameters.builder().build()); @@ -73,22 +73,47 @@ public CompletableFuture<ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationMembersRequestParameters.builder().build(), requestOptions); + } + + /** + * List organization members. + * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    + *

    This endpoint supports two types of pagination:

    + *
      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *
    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture>> list( String id, ListOrganizationMembersRequestParameters request) { @@ -98,22 +123,22 @@ public CompletableFuture<ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public CompletableFuture>> list( String id, ListOrganizationMembersRequestParameters request, RequestOptions requestOptions) { @@ -135,6 +160,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -222,8 +252,8 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public CompletableFuture> create( String id, CreateOrganizationMemberRequestContent request) { @@ -231,17 +261,21 @@ public CompletableFuture> create( } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public CompletableFuture> create( String id, CreateOrganizationMemberRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("members") - .build(); + .addPathSegments("members"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -250,7 +284,7 @@ public CompletableFuture> create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -320,12 +354,16 @@ public CompletableFuture> delete( public CompletableFuture> delete( String id, DeleteOrganizationMembersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("members") - .build(); + .addPathSegments("members"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -334,7 +372,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/ClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/ClientGrantsClient.java index 00c485c11..d84661115 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/ClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/ClientGrantsClient.java @@ -32,6 +32,10 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + public SyncPagingIterable list( String id, ListOrganizationClientGrantsRequestParameters request) { return this.rawClient.list(id, request).body(); 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 9b96fa066..294ac0130 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/DiscoveryDomainsClient.java @@ -39,6 +39,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve list of all organization discovery domains associated with the specified organization. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve list of all organization discovery domains associated with the specified organization. */ @@ -116,14 +123,22 @@ public void delete(String id, String discoveryDomainId, RequestOptions requestOp } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public UpdateOrganizationDiscoveryDomainResponseContent update(String id, String discoveryDomainId) { return this.rawClient.update(id, discoveryDomainId).body(); } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + */ + public UpdateOrganizationDiscoveryDomainResponseContent update( + String id, String discoveryDomainId, RequestOptions requestOptions) { + return this.rawClient.update(id, discoveryDomainId, requestOptions).body(); + } + + /** + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public UpdateOrganizationDiscoveryDomainResponseContent update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request) { @@ -131,7 +146,7 @@ public UpdateOrganizationDiscoveryDomainResponseContent update( } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public UpdateOrganizationDiscoveryDomainResponseContent update( String id, diff --git a/src/main/java/com/auth0/client/mgmt/organizations/EnabledConnectionsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/EnabledConnectionsClient.java index cf3da245b..c56a76b6f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/EnabledConnectionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/EnabledConnectionsClient.java @@ -38,6 +38,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. */ @@ -56,7 +63,7 @@ public SyncPagingIterable list( /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public AddOrganizationConnectionResponseContent add(String id, AddOrganizationConnectionRequestContent request) { return this.rawClient.add(id, request).body(); @@ -64,7 +71,7 @@ public AddOrganizationConnectionResponseContent add(String id, AddOrganizationCo /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public AddOrganizationConnectionResponseContent add( String id, AddOrganizationConnectionRequestContent request, RequestOptions requestOptions) { @@ -87,7 +94,7 @@ public GetOrganizationConnectionResponseContent get(String id, String connection /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public void delete(String id, String connectionId) { this.rawClient.delete(id, connectionId).body(); @@ -95,7 +102,7 @@ public void delete(String id, String connectionId) { /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public void delete(String id, String connectionId, RequestOptions requestOptions) { this.rawClient.delete(id, connectionId, requestOptions).body(); @@ -108,6 +115,14 @@ public UpdateOrganizationConnectionResponseContent update(String id, String conn return this.rawClient.update(id, connectionId).body(); } + /** + * Modify the details of a specific connection currently enabled for an Organization. + */ + public UpdateOrganizationConnectionResponseContent update( + String id, String connectionId, RequestOptions requestOptions) { + return this.rawClient.update(id, connectionId, requestOptions).body(); + } + /** * Modify the details of a specific connection currently enabled for an Organization. */ diff --git a/src/main/java/com/auth0/client/mgmt/organizations/InvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/InvitationsClient.java index 9f2280f6e..65aaa7ad7 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/InvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/InvitationsClient.java @@ -31,14 +31,21 @@ public RawInvitationsClient withRawResponse() { } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public SyncPagingIterable list( String id, ListOrganizationInvitationsRequestParameters request) { @@ -46,7 +53,7 @@ public SyncPagingIterable list( } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public SyncPagingIterable list( String id, ListOrganizationInvitationsRequestParameters request, RequestOptions requestOptions) { @@ -54,7 +61,7 @@ public SyncPagingIterable list( } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CreateOrganizationInvitationResponseContent create( String id, CreateOrganizationInvitationRequestContent request) { @@ -62,7 +69,7 @@ public CreateOrganizationInvitationResponseContent create( } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public CreateOrganizationInvitationResponseContent create( String id, CreateOrganizationInvitationRequestContent request, RequestOptions requestOptions) { @@ -73,6 +80,10 @@ public GetOrganizationInvitationResponseContent get(String id, String invitation return this.rawClient.get(id, invitationId).body(); } + public GetOrganizationInvitationResponseContent get(String id, String invitationId, RequestOptions requestOptions) { + return this.rawClient.get(id, invitationId, requestOptions).body(); + } + public GetOrganizationInvitationResponseContent get( String id, String invitationId, GetOrganizationInvitationRequestParameters request) { return this.rawClient.get(id, invitationId, request).body(); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/MembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/MembersClient.java index ec7fc62c8..eec6a0041 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/MembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/MembersClient.java @@ -37,22 +37,22 @@ public RawMembersClient withRawResponse() { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); @@ -61,22 +61,46 @@ public SyncPagingIterable list(String id) { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * List organization members. + * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    + *

    This endpoint supports two types of pagination:

    + *
      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *
    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public SyncPagingIterable list(String id, ListOrganizationMembersRequestParameters request) { return this.rawClient.list(id, request).body(); @@ -85,22 +109,22 @@ public SyncPagingIterable list(String id, ListOrganizationMe /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public SyncPagingIterable list( String id, ListOrganizationMembersRequestParameters request, RequestOptions requestOptions) { @@ -108,16 +132,16 @@ public SyncPagingIterable list( } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public void create(String id, CreateOrganizationMemberRequestContent request) { this.rawClient.create(id, request).body(); } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public void create(String id, CreateOrganizationMemberRequestContent request, RequestOptions requestOptions) { this.rawClient.create(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java index 74a99a44f..0566aa020 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawClientGrantsClient.java @@ -46,6 +46,11 @@ public ManagementApiHttpResponse> li return list(id, ListOrganizationClientGrantsRequestParameters.builder().build()); } + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationClientGrantsRequestParameters.builder().build(), requestOptions); + } + public ManagementApiHttpResponse> list( String id, ListOrganizationClientGrantsRequestParameters request) { return list(id, request, null); @@ -75,6 +80,11 @@ public ManagementApiHttpResponse> li QueryStringMapper.addQueryParameter( httpUrl, "grant_ids", request.getGrantIds().get(), true); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -140,12 +150,16 @@ public ManagementApiHttpResponse create( String id, AssociateOrganizationClientGrantRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("client-grants") - .build(); + .addPathSegments("client-grants"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -154,7 +168,7 @@ public ManagementApiHttpResponse delete(String id, String grantId) { } public ManagementApiHttpResponse delete(String id, String grantId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("client-grants") - .addPathSegment(grantId) - .build(); + .addPathSegment(grantId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") 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 dfa84af8f..c10b3aad6 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawDiscoveryDomainsClient.java @@ -54,6 +54,15 @@ public ManagementApiHttpResponse id, ListOrganizationDiscoveryDomainsRequestParameters.builder().build()); } + /** + * Retrieve list of all organization discovery domains associated with the specified organization. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list( + id, ListOrganizationDiscoveryDomainsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve list of all organization discovery domains associated with the specified organization. */ @@ -77,6 +86,11 @@ public ManagementApiHttpResponse httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -149,12 +163,16 @@ public ManagementApiHttpResponse create( String id, CreateOrganizationDiscoveryDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("discovery-domains") - .build(); + .addPathSegments("discovery-domains"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -163,7 +181,7 @@ public ManagementApiHttpResponse getByName( String id, String discoveryDomain, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains/name") - .addPathSegment(discoveryDomain) - .build(); + .addPathSegment(discoveryDomain); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -295,15 +317,19 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse get( String id, String discoveryDomainId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -361,15 +387,19 @@ public ManagementApiHttpResponse delete(String id, String discoveryDomainI * Remove a discovery domain from an organization. This action cannot be undone. */ public ManagementApiHttpResponse delete(String id, String discoveryDomainId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -411,7 +441,7 @@ public ManagementApiHttpResponse delete(String id, String discoveryDomainI } /** - * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The <code>status</code> field must be either <code>pending</code> or <code>verified</code>. The <code>use_for_organization_discovery</code> field can be <code>true</code> or <code>false</code> (default: <code>true</code>). + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public ManagementApiHttpResponse update( String id, String discoveryDomainId) { @@ -422,7 +452,19 @@ public ManagementApiHttpResponsestatus field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). + */ + public ManagementApiHttpResponse update( + String id, String discoveryDomainId, RequestOptions requestOptions) { + return update( + id, + discoveryDomainId, + UpdateOrganizationDiscoveryDomainRequestContent.builder().build(), + requestOptions); + } + + /** + * Update the verification status and/or use_for_organization_discovery for an organization discovery domain. The status field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public ManagementApiHttpResponse update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request) { @@ -430,20 +472,24 @@ public ManagementApiHttpResponsestatus field must be either pending or verified. The use_for_organization_discovery field can be true or false (default: true). */ public ManagementApiHttpResponse update( String id, String discoveryDomainId, UpdateOrganizationDiscoveryDomainRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("discovery-domains") - .addPathSegment(discoveryDomainId) - .build(); + .addPathSegment(discoveryDomainId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -452,7 +498,7 @@ public ManagementApiHttpResponse> lis return list(id, ListOrganizationConnectionsRequestParameters.builder().build()); } + /** + * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationConnectionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details about a specific connection currently enabled for an Organization. Information returned includes details such as connection ID, name, strategy, and whether the connection automatically grants membership upon login. */ @@ -73,6 +81,11 @@ public ManagementApiHttpResponse> lis httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -133,7 +146,7 @@ public ManagementApiHttpResponse> lis /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public ManagementApiHttpResponse add( String id, AddOrganizationConnectionRequestContent request) { @@ -142,16 +155,20 @@ public ManagementApiHttpResponse add( /** * Enable a specific connection for a given Organization. To enable a connection, it must already exist within your tenant; connections cannot be created through this action. - *

    <a href="https://auth0.com/docs/authenticate/identity-providers">Connections</a> represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    + *

    Connections represent the relationship between Auth0 and a source of users. Available types of connections include database, enterprise, and social.

    */ public ManagementApiHttpResponse add( String id, AddOrganizationConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("enabled_connections") - .build(); + .addPathSegments("enabled_connections"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -160,7 +177,7 @@ public ManagementApiHttpResponse add( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -217,15 +234,19 @@ public ManagementApiHttpResponse get(S */ public ManagementApiHttpResponse get( String id, String connectionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -268,7 +289,7 @@ public ManagementApiHttpResponse get( /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public ManagementApiHttpResponse delete(String id, String connectionId) { return delete(id, connectionId, null); @@ -276,18 +297,22 @@ public ManagementApiHttpResponse delete(String id, String connectionId) { /** * Disable a specific connection for an Organization. Once disabled, Organization members can no longer use that connection to authenticate. - *

    <b>Note</b>: This action does not remove the connection from your tenant.

    + *

    Note: This action does not remove the connection from your tenant.

    */ public ManagementApiHttpResponse delete(String id, String connectionId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -339,6 +364,18 @@ public ManagementApiHttpResponse up UpdateOrganizationConnectionRequestContent.builder().build()); } + /** + * Modify the details of a specific connection currently enabled for an Organization. + */ + public ManagementApiHttpResponse update( + String id, String connectionId, RequestOptions requestOptions) { + return update( + id, + connectionId, + UpdateOrganizationConnectionRequestContent.builder().build(), + requestOptions); + } + /** * Modify the details of a specific connection currently enabled for an Organization. */ @@ -355,13 +392,17 @@ public ManagementApiHttpResponse up String connectionId, UpdateOrganizationConnectionRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("enabled_connections") - .addPathSegment(connectionId) - .build(); + .addPathSegment(connectionId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -370,7 +411,7 @@ public ManagementApiHttpResponse up throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java index 5d1989446..f61b48ecf 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawInvitationsClient.java @@ -44,14 +44,22 @@ public RawInvitationsClient(ClientOptions clientOptions) { } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse> list(String id) { return list(id, ListOrganizationInvitationsRequestParameters.builder().build()); } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationInvitationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse> list( String id, ListOrganizationInvitationsRequestParameters request) { @@ -59,7 +67,7 @@ public ManagementApiHttpResponse> lis } /** - * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Retrieve a detailed list of invitations sent to users for a specific Organization. The list includes details such as inviter and invitee information, invitation URLs, and dates of creation and expiration. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse> list( String id, ListOrganizationInvitationsRequestParameters request, RequestOptions requestOptions) { @@ -85,6 +93,11 @@ public ManagementApiHttpResponse> lis QueryStringMapper.addQueryParameter( httpUrl, "sort", request.getSort().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -147,7 +160,7 @@ public ManagementApiHttpResponse> lis } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse create( String id, CreateOrganizationInvitationRequestContent request) { @@ -155,16 +168,20 @@ public ManagementApiHttpResponse cr } /** - * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">Invite Organization Members</a>. + * Create a user invitation for a specific Organization. Upon creation, the listed user receives an email inviting them to join the Organization. To learn more about Organization invitations, review Invite Organization Members. */ public ManagementApiHttpResponse create( String id, CreateOrganizationInvitationRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("invitations") - .build(); + .addPathSegments("invitations"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -173,7 +190,7 @@ public ManagementApiHttpResponse cr throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -228,6 +245,15 @@ public ManagementApiHttpResponse get(S GetOrganizationInvitationRequestParameters.builder().build()); } + public ManagementApiHttpResponse get( + String id, String invitationId, RequestOptions requestOptions) { + return get( + id, + invitationId, + GetOrganizationInvitationRequestParameters.builder().build(), + requestOptions); + } + public ManagementApiHttpResponse get( String id, String invitationId, GetOrganizationInvitationRequestParameters request) { return get(id, invitationId, request, null); @@ -252,6 +278,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -305,15 +336,19 @@ public ManagementApiHttpResponse delete(String id, String invitationId) { } public ManagementApiHttpResponse delete(String id, String invitationId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("invitations") - .addPathSegment(invitationId) - .build(); + .addPathSegment(invitationId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java index 9cdd816cd..73772dc4e 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/RawMembersClient.java @@ -44,22 +44,22 @@ public RawMembersClient(ClientOptions clientOptions) { /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public ManagementApiHttpResponse> list(String id) { return list(id, ListOrganizationMembersRequestParameters.builder().build()); @@ -68,22 +68,47 @@ public ManagementApiHttpResponse> list(St /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListOrganizationMembersRequestParameters.builder().build(), requestOptions); + } + + /** + * List organization members. + * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    + *

    This endpoint supports two types of pagination:

    + *
      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *
    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public ManagementApiHttpResponse> list( String id, ListOrganizationMembersRequestParameters request) { @@ -93,22 +118,22 @@ public ManagementApiHttpResponse> list( /** * List organization members. * This endpoint is subject to eventual consistency. New users may not be immediately included in the response and deleted users may not be immediately removed from it. - *

    <ul> - * <li> - * Use the <code>fields</code> parameter to optionally define the specific member details retrieved. If <code>fields</code> is left blank, all fields (except roles) are returned. - * </li> - * <li> - * Member roles are not sent by default. Use <code>fields=roles</code> to retrieve the roles assigned to each listed member. To use this parameter, you must include the <code>read:organization_member_roles</code> scope in the token. - * </li> - * </ul>

    + *

      + *
    • + * Use the fields parameter to optionally define the specific member details retrieved. If fields is left blank, all fields (except roles) are returned. + *
    • + *
    • + * Member roles are not sent by default. Use fields=roles to retrieve the roles assigned to each listed member. To use this parameter, you must include the read:organization_member_roles scope in the token. + *
    • + *

    *

    This endpoint supports two types of pagination:

    *
      *
    • Offset pagination
    • *
    • Checkpoint pagination
    • *
    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    - *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the <code>from</code> parameter. If there are more results, a <code>next</code> value will be included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, this indicates there are no more pages remaining.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters: - from: Optional id from which to start selection. - take: The total amount of entries to retrieve when using the from parameter. Defaults to 50. Note: The first time you call this endpoint using Checkpoint Pagination, you should omit the from parameter. If there are more results, a next value will be included in the response. You can use this for subsequent API calls. When next is no longer included in the response, this indicates there are no more pages remaining.

    */ public ManagementApiHttpResponse> list( String id, ListOrganizationMembersRequestParameters request, RequestOptions requestOptions) { @@ -130,6 +155,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -187,25 +217,29 @@ public ManagementApiHttpResponse> list( } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public ManagementApiHttpResponse create(String id, CreateOrganizationMemberRequestContent request) { return create(id, request, null); } /** - * Set one or more existing users as members of a specific <a href="https://auth0.com/docs/manage-users/organizations">Organization</a>. - *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can <a href="https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members">invite them to create an account</a>, manually create them through the Auth0 Dashboard, or use the Management API.

    + * Set one or more existing users as members of a specific Organization. + *

    To add a user to an Organization through this action, the user must already exist in your tenant. If a user does not yet exist, you can invite them to create an account, manually create them through the Auth0 Dashboard, or use the Management API.

    */ public ManagementApiHttpResponse create( String id, CreateOrganizationMemberRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("members") - .build(); + .addPathSegments("members"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -214,7 +248,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -262,12 +296,16 @@ public ManagementApiHttpResponse delete(String id, DeleteOrganizationMembe public ManagementApiHttpResponse delete( String id, DeleteOrganizationMembersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) - .addPathSegments("members") - .build(); + .addPathSegments("members"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -276,7 +314,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java index 83a6c6bcf..85c1b7430 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRawRolesClient.java @@ -57,6 +57,19 @@ public CompletableFuture>> li ListOrganizationMemberRolesRequestParameters.builder().build()); } + /** + * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. + *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    + */ + public CompletableFuture>> list( + String id, String userId, RequestOptions requestOptions) { + return list( + id, + userId, + ListOrganizationMemberRolesRequestParameters.builder().build(), + requestOptions); + } + /** * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    @@ -87,6 +100,11 @@ public CompletableFuture>> li httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -174,7 +192,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public CompletableFuture> assign( @@ -183,7 +201,7 @@ public CompletableFuture> assign( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public CompletableFuture> assign( @@ -191,14 +209,18 @@ public CompletableFuture> assign( String userId, AssignOrganizationMemberRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("members") .addPathSegment(userId) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -207,7 +229,7 @@ public CompletableFuture> assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -276,7 +298,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public CompletableFuture> delete( @@ -285,7 +307,7 @@ public CompletableFuture> delete( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public CompletableFuture> delete( @@ -293,14 +315,18 @@ public CompletableFuture> delete( String userId, DeleteOrganizationMemberRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("members") .addPathSegment(userId) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -309,7 +335,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRolesClient.java index c04b4ad9d..a7a22e107 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/AsyncRolesClient.java @@ -37,6 +37,14 @@ public CompletableFuture> list(String id, String userId return this.rawClient.list(id, userId).thenApply(response -> response.body()); } + /** + * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. + *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    + */ + public CompletableFuture> list(String id, String userId, RequestOptions requestOptions) { + return this.rawClient.list(id, userId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    @@ -59,7 +67,7 @@ public CompletableFuture> list( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public CompletableFuture assign( @@ -68,7 +76,7 @@ public CompletableFuture assign( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public CompletableFuture assign( @@ -80,7 +88,7 @@ public CompletableFuture assign( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public CompletableFuture delete( @@ -89,7 +97,7 @@ public CompletableFuture delete( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public CompletableFuture delete( diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/RawRolesClient.java index f1624d5e2..70d50296f 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/RawRolesClient.java @@ -52,6 +52,19 @@ public ManagementApiHttpResponse> list(String id, Strin ListOrganizationMemberRolesRequestParameters.builder().build()); } + /** + * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. + *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    + */ + public ManagementApiHttpResponse> list( + String id, String userId, RequestOptions requestOptions) { + return list( + id, + userId, + ListOrganizationMemberRolesRequestParameters.builder().build(), + requestOptions); + } + /** * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    @@ -82,6 +95,11 @@ public ManagementApiHttpResponse> list( httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -140,7 +158,7 @@ public ManagementApiHttpResponse> list( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public ManagementApiHttpResponse assign( @@ -149,7 +167,7 @@ public ManagementApiHttpResponse assign( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public ManagementApiHttpResponse assign( @@ -157,14 +175,18 @@ public ManagementApiHttpResponse assign( String userId, AssignOrganizationMemberRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("members") .addPathSegment(userId) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -173,7 +195,7 @@ public ManagementApiHttpResponse assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -219,7 +241,7 @@ public ManagementApiHttpResponse assign( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public ManagementApiHttpResponse delete( @@ -228,7 +250,7 @@ public ManagementApiHttpResponse delete( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public ManagementApiHttpResponse delete( @@ -236,14 +258,18 @@ public ManagementApiHttpResponse delete( String userId, DeleteOrganizationMemberRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("organizations") .addPathSegment(id) .addPathSegments("members") .addPathSegment(userId) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -252,7 +278,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/RolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/members/RolesClient.java index 7dfd2bb18..2511b8e87 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/RolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/RolesClient.java @@ -36,6 +36,14 @@ public SyncPagingIterable list(String id, String userId) { return this.rawClient.list(id, userId).body(); } + /** + * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. + *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    + */ + public SyncPagingIterable list(String id, String userId, RequestOptions requestOptions) { + return this.rawClient.list(id, userId, requestOptions).body(); + } + /** * Retrieve detailed list of roles assigned to a given user within the context of a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action only returns the roles associated with the specified Organization; any roles assigned to the user within other Organizations are not included.

    @@ -58,7 +66,7 @@ public SyncPagingIterable list( } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public void assign(String id, String userId, AssignOrganizationMemberRolesRequestContent request) { @@ -66,7 +74,7 @@ public void assign(String id, String userId, AssignOrganizationMemberRolesReques } /** - * Assign one or more <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> to a user to determine their access for a specific Organization. + * Assign one or more roles to a user to determine their access for a specific Organization. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action assigns roles to a user only for the specified Organization. Roles cannot be assigned to a user across multiple Organizations in the same call.

    */ public void assign( @@ -78,7 +86,7 @@ public void assign( } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public void delete(String id, String userId, DeleteOrganizationMemberRolesRequestContent request) { @@ -86,7 +94,7 @@ public void delete(String id, String userId, DeleteOrganizationMemberRolesReques } /** - * Remove one or more Organization-specific <a href="https://auth0.com/docs/manage-users/access-control/rbac">roles</a> from a given user. + * Remove one or more Organization-specific roles from a given user. *

    Users can be members of multiple Organizations with unique roles assigned for each membership. This action removes roles from a user in relation to the specified Organization. Roles assigned to the user within a different Organization cannot be managed in the same call.

    */ public void delete( diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/AssignOrganizationMemberRolesRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/AssignOrganizationMemberRolesRequestContent.java index 69687c67c..5f335791e 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/AssignOrganizationMemberRolesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/AssignOrganizationMemberRolesRequestContent.java @@ -109,5 +109,15 @@ public Builder addAllRoles(List roles) { public AssignOrganizationMemberRolesRequestContent build() { return new AssignOrganizationMemberRolesRequestContent(roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/DeleteOrganizationMemberRolesRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/DeleteOrganizationMemberRolesRequestContent.java index cdf4036f7..47bbee41e 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/DeleteOrganizationMemberRolesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/DeleteOrganizationMemberRolesRequestContent.java @@ -109,5 +109,15 @@ public Builder addAllRoles(List roles) { public DeleteOrganizationMemberRolesRequestContent build() { return new DeleteOrganizationMemberRolesRequestContent(roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java index 91ca62ef7..8ac7f18d2 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListOrganizationMemberRolesRequestParameters build() { return new ListOrganizationMemberRolesRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java index 01aa3b991..2fa7a9dcf 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/AddOrganizationConnectionRequestContent.java @@ -121,6 +121,10 @@ public interface ConnectionIdStage { public interface _FinalStage { AddOrganizationConnectionRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.

    */ @@ -244,5 +248,17 @@ public AddOrganizationConnectionRequestContent build() { return new AddOrganizationConnectionRequestContent( connectionId, assignMembershipOnLogin, isSignupEnabled, showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java index 2a3717228..008e5fd25 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/AssociateOrganizationClientGrantRequestContent.java @@ -77,6 +77,10 @@ public interface GrantIdStage { public interface _FinalStage { AssociateOrganizationClientGrantRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage grantId(@NotNull String grantId) { public AssociateOrganizationClientGrantRequestContent build() { return new AssociateOrganizationClientGrantRequestContent(grantId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java index 98670b649..24739546a 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationDiscoveryDomainRequestContent.java @@ -106,6 +106,10 @@ public interface DomainStage { public interface _FinalStage { CreateOrganizationDiscoveryDomainRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage status(Optional status); _FinalStage status(OrganizationDiscoveryDomainStatus status); @@ -189,5 +193,17 @@ public CreateOrganizationDiscoveryDomainRequestContent build() { return new CreateOrganizationDiscoveryDomainRequestContent( domain, status, useForOrganizationDiscovery, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java index e1fc23bc4..2fa994485 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationInvitationRequestContent.java @@ -194,6 +194,10 @@ public interface ClientIdStage { public interface _FinalStage { CreateOrganizationInvitationRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The id of the connection to force invitee to authenticate with.

    */ @@ -416,5 +420,17 @@ public CreateOrganizationInvitationRequestContent build() { sendInvitationEmail, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationMemberRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationMemberRequestContent.java index 2fc0bfa7f..d3b8cf94d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationMemberRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/CreateOrganizationMemberRequestContent.java @@ -109,5 +109,15 @@ public Builder addAllMembers(List members) { public CreateOrganizationMemberRequestContent build() { return new CreateOrganizationMemberRequestContent(members, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationMembersRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationMembersRequestContent.java index 107e0da29..d09cea35d 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationMembersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/DeleteOrganizationMembersRequestContent.java @@ -109,5 +109,15 @@ public Builder addAllMembers(List members) { public DeleteOrganizationMembersRequestContent build() { return new DeleteOrganizationMembersRequestContent(members, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java index 3fa65613f..55e2b1aac 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/GetOrganizationInvitationRequestParameters.java @@ -192,5 +192,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetOrganizationInvitationRequestParameters build() { return new GetOrganizationInvitationRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java index f7e4ccaef..2aac03400 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationClientGrantsRequestParameters.java @@ -58,7 +58,7 @@ private ListOrganizationClientGrantsRequestParameters( } /** - * @return Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).<br /><b>e.g.</b> <i>../client-grants?grant_ids=id1&grant_ids=id2</i> + * @return Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).e.g. ../client-grants?grant_ids=id1&grant_ids=id2 */ @JsonIgnore public Optional> getGrantIds() { @@ -202,7 +202,7 @@ public Builder from(ListOrganizationClientGrantsRequestParameters other) { } /** - *

    Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).<br /><b>e.g.</b> <i>../client-grants?grant_ids=id1&grant_ids=id2</i>

    + *

    Optional filter on the ID of the client grant. Must be URL encoded and may be specified multiple times (max 10).e.g. ../client-grants?grant_ids=id1&grant_ids=id2

    */ @JsonSetter(value = "grant_ids", nulls = Nulls.SKIP) public Builder grantIds(@Nullable Optional> grantIds) { @@ -405,5 +405,15 @@ public ListOrganizationClientGrantsRequestParameters build() { return new ListOrganizationClientGrantsRequestParameters( grantIds, audience, clientId, page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java index 1f5f6812a..046afc7c7 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationConnectionsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListOrganizationConnectionsRequestParameters build() { return new ListOrganizationConnectionsRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java index 7ebb5edb9..9082576b2 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationDiscoveryDomainsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListOrganizationDiscoveryDomainsRequestParameters build() { return new ListOrganizationDiscoveryDomainsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java index 456c405d1..8114e3f17 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationInvitationsRequestParameters.java @@ -407,5 +407,15 @@ public ListOrganizationInvitationsRequestParameters build() { return new ListOrganizationInvitationsRequestParameters( page, perPage, includeTotals, fields, includeFields, sort, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java index 4c9a985ac..f1d9566cb 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationMembersRequestParameters.java @@ -305,5 +305,15 @@ public ListOrganizationMembersRequestParameters build() { return new ListOrganizationMembersRequestParameters( from, take, fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestContent.java index ee5ef19d8..616d78b26 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationConnectionRequestContent.java @@ -161,5 +161,15 @@ public UpdateOrganizationConnectionRequestContent build() { return new UpdateOrganizationConnectionRequestContent( assignMembershipOnLogin, isSignupEnabled, showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationDiscoveryDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationDiscoveryDomainRequestContent.java index 794cd4e12..be16ff0d0 100644 --- a/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationDiscoveryDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/organizations/types/UpdateOrganizationDiscoveryDomainRequestContent.java @@ -125,5 +125,15 @@ public UpdateOrganizationDiscoveryDomainRequestContent build() { return new UpdateOrganizationDiscoveryDomainRequestContent( status, useForOrganizationDiscovery, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java index ca0c1277a..37ca4bfb7 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawCustomTextClient.java @@ -53,15 +53,19 @@ public CompletableFuture>> get( */ public CompletableFuture>> get( PromptGroupNameEnum prompt, PromptLanguageEnum language, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("custom-text") - .addPathSegment(language.toString()) - .build(); + .addPathSegment(language.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -147,13 +151,17 @@ public CompletableFuture> set( PromptLanguageEnum language, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("custom-text") - .addPathSegment(language.toString()) - .build(); + .addPathSegment(language.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -162,7 +170,7 @@ public CompletableFuture> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java index 5767e8a1d..a97362366 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawPartialsClient.java @@ -51,14 +51,18 @@ public CompletableFuture>> get(Par */ public CompletableFuture>> get( PartialGroupsEnum prompt, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) - .addPathSegments("partials") - .build(); + .addPathSegments("partials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -141,12 +145,16 @@ public CompletableFuture> set( */ public CompletableFuture> set( PartialGroupsEnum prompt, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) - .addPathSegments("partials") - .build(); + .addPathSegments("partials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -155,7 +163,7 @@ public CompletableFuture> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java index d2e266649..b07273073 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRawRenderingClient.java @@ -59,6 +59,14 @@ public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListAculsRequestParameters.builder().build(), requestOptions); + } + /** * Get render setting configurations for all screens. */ @@ -100,6 +108,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -192,7 +205,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture> bulkUpdate( BulkUpdateAculRequestContent request) { @@ -200,14 +213,18 @@ public CompletableFutureconfiguring render settings for advanced customization. */ public CompletableFuture> bulkUpdate( BulkUpdateAculRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts/rendering") - .build(); + .addPathSegments("prompts/rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -216,7 +233,7 @@ public CompletableFuture> get( */ public CompletableFuture> get( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("screen") .addPathSegment(screen.toString()) - .addPathSegments("rendering") - .build(); + .addPathSegments("rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -384,7 +405,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture> update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen) { @@ -392,7 +413,15 @@ public CompletableFuture> u } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. + */ + public CompletableFuture> update( + PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { + return update(prompt, screen, UpdateAculRequestContent.builder().build(), requestOptions); + } + + /** + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture> update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request) { @@ -400,21 +429,25 @@ public CompletableFuture> u } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture> update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("screen") .addPathSegment(screen.toString()) - .addPathSegments("rendering") - .build(); + .addPathSegments("rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -423,7 +456,7 @@ public CompletableFuture> u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java index 6079315d7..0fdf5cf0b 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/AsyncRenderingClient.java @@ -41,6 +41,13 @@ public CompletableFuture> list( return this.rawClient.list().thenApply(response -> response.body()); } + /** + * Get render setting configurations for all screens. + */ + public CompletableFuture> list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * Get render setting configurations for all screens. */ @@ -58,14 +65,14 @@ public CompletableFuture> list( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture bulkUpdate(BulkUpdateAculRequestContent request) { return this.rawClient.bulkUpdate(request).thenApply(response -> response.body()); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture bulkUpdate( BulkUpdateAculRequestContent request, RequestOptions requestOptions) { @@ -88,14 +95,22 @@ public CompletableFuture get( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture update(PromptGroupNameEnum prompt, ScreenGroupNameEnum screen) { return this.rawClient.update(prompt, screen).thenApply(response -> response.body()); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. + */ + public CompletableFuture update( + PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { + return this.rawClient.update(prompt, screen, requestOptions).thenApply(response -> response.body()); + } + + /** + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request) { @@ -103,7 +118,7 @@ public CompletableFuture update( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public CompletableFuture update( PromptGroupNameEnum prompt, diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java index d177e3c69..3faaa1854 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawCustomTextClient.java @@ -48,15 +48,19 @@ public ManagementApiHttpResponse> get(PromptGroupNameEnum pr */ public ManagementApiHttpResponse> get( PromptGroupNameEnum prompt, PromptLanguageEnum language, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("custom-text") - .addPathSegment(language.toString()) - .build(); + .addPathSegment(language.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -119,13 +123,17 @@ public ManagementApiHttpResponse set( PromptLanguageEnum language, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("custom-text") - .addPathSegment(language.toString()) - .build(); + .addPathSegment(language.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -134,7 +142,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java index 2d11561ca..a085a1fe4 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawPartialsClient.java @@ -46,14 +46,18 @@ public ManagementApiHttpResponse> get(PartialGroupsEnum prom * Get template partials for a prompt */ public ManagementApiHttpResponse> get(PartialGroupsEnum prompt, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) - .addPathSegments("partials") - .build(); + .addPathSegments("partials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -112,12 +116,16 @@ public ManagementApiHttpResponse set(PartialGroupsEnum prompt, Map set( PartialGroupsEnum prompt, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) - .addPathSegments("partials") - .build(); + .addPathSegments("partials"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -126,7 +134,7 @@ public ManagementApiHttpResponse set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java index c4b922f6e..f4b7cb4b1 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RawRenderingClient.java @@ -54,6 +54,14 @@ public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListAculsRequestParameters.builder().build(), requestOptions); + } + /** * Get render setting configurations for all screens. */ @@ -95,6 +103,11 @@ public ManagementApiHttpResponse { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -155,21 +168,25 @@ public ManagementApiHttpResponseconfiguring render settings for advanced customization. */ public ManagementApiHttpResponse bulkUpdate(BulkUpdateAculRequestContent request) { return bulkUpdate(request, null); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public ManagementApiHttpResponse bulkUpdate( BulkUpdateAculRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("prompts/rendering") - .build(); + .addPathSegments("prompts/rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -178,7 +195,7 @@ public ManagementApiHttpResponse bulkUpdate( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -238,16 +255,20 @@ public ManagementApiHttpResponse get( */ public ManagementApiHttpResponse get( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("screen") .addPathSegment(screen.toString()) - .addPathSegments("rendering") - .build(); + .addPathSegments("rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -297,7 +318,7 @@ public ManagementApiHttpResponse get( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public ManagementApiHttpResponse update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen) { @@ -305,7 +326,15 @@ public ManagementApiHttpResponse update( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. + */ + public ManagementApiHttpResponse update( + PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { + return update(prompt, screen, UpdateAculRequestContent.builder().build(), requestOptions); + } + + /** + * Learn more about configuring render settings for advanced customization. */ public ManagementApiHttpResponse update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request) { @@ -313,21 +342,25 @@ public ManagementApiHttpResponse update( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public ManagementApiHttpResponse update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("prompts") .addPathSegment(prompt.toString()) .addPathSegments("screen") .addPathSegment(screen.toString()) - .addPathSegments("rendering") - .build(); + .addPathSegments("rendering"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -336,7 +369,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java b/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java index 0833006c0..a819e40f2 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/RenderingClient.java @@ -40,6 +40,13 @@ public SyncPagingIterable list() { return this.rawClient.list().body(); } + /** + * Get render setting configurations for all screens. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * Get render setting configurations for all screens. */ @@ -56,14 +63,14 @@ public SyncPagingIterable list( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public BulkUpdateAculResponseContent bulkUpdate(BulkUpdateAculRequestContent request) { return this.rawClient.bulkUpdate(request).body(); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public BulkUpdateAculResponseContent bulkUpdate( BulkUpdateAculRequestContent request, RequestOptions requestOptions) { @@ -86,14 +93,22 @@ public GetAculResponseContent get( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public UpdateAculResponseContent update(PromptGroupNameEnum prompt, ScreenGroupNameEnum screen) { return this.rawClient.update(prompt, screen).body(); } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. + */ + public UpdateAculResponseContent update( + PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, RequestOptions requestOptions) { + return this.rawClient.update(prompt, screen, requestOptions).body(); + } + + /** + * Learn more about configuring render settings for advanced customization. */ public UpdateAculResponseContent update( PromptGroupNameEnum prompt, ScreenGroupNameEnum screen, UpdateAculRequestContent request) { @@ -101,7 +116,7 @@ public UpdateAculResponseContent update( } /** - * Learn more about <a href='https://auth0.com/docs/customize/login-pages/advanced-customizations/getting-started/configure-acul-screens'>configuring render settings</a> for advanced customization. + * Learn more about configuring render settings for advanced customization. */ public UpdateAculResponseContent update( PromptGroupNameEnum prompt, diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/BulkUpdateAculRequestContent.java b/src/main/java/com/auth0/client/mgmt/prompts/types/BulkUpdateAculRequestContent.java index f23bb371f..fbe3c68de 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/types/BulkUpdateAculRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/types/BulkUpdateAculRequestContent.java @@ -103,5 +103,15 @@ public Builder addAllConfigs(List configs) { public BulkUpdateAculRequestContent build() { return new BulkUpdateAculRequestContent(configs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java index 3bcc187a2..e44975ccc 100644 --- a/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/prompts/types/ListAculsRequestParameters.java @@ -543,5 +543,15 @@ public ListAculsRequestParameters build() { renderingMode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } 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 2e69170a3..811341901 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 @@ -342,5 +342,15 @@ public UpdateAculRequestContent build() { filters, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java index 797e4d1d1..3855eaa49 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/AsyncRawSettingsClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings") - .build(); + .addPathSegments("risk-assessments/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -135,10 +139,14 @@ public CompletableFuture> update( UpdateRiskAssessmentsSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings") - .build(); + .addPathSegments("risk-assessments/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -147,7 +155,7 @@ public CompletableFuture get( * Gets the tenant settings for risk assessments */ public ManagementApiHttpResponse get(RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings") - .build(); + .addPathSegments("risk-assessments/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -108,10 +112,14 @@ public ManagementApiHttpResponse u */ public ManagementApiHttpResponse update( UpdateRiskAssessmentsSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings") - .build(); + .addPathSegments("risk-assessments/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -120,7 +128,7 @@ public ManagementApiHttpResponse u throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java index 0d031ad39..4036e9535 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/settings/AsyncRawNewDeviceClient.java @@ -51,12 +51,16 @@ public CompletableFuture> get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings/new-device") - .build(); + .addPathSegments("risk-assessments/settings/new-device"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -135,10 +139,14 @@ public CompletableFuture> update( UpdateRiskAssessmentsSettingsNewDeviceRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings/new-device") - .build(); + .addPathSegments("risk-assessments/settings/new-device"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -147,7 +155,7 @@ public CompletableFuture get( RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings/new-device") - .build(); + .addPathSegments("risk-assessments/settings/new-device"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -109,10 +113,14 @@ public ManagementApiHttpResponse update( UpdateRiskAssessmentsSettingsNewDeviceRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("risk-assessments/settings/new-device") - .build(); + .addPathSegments("risk-assessments/settings/new-device"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -121,7 +129,7 @@ public ManagementApiHttpResponse additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage rememberFor(int rememberFor) { public UpdateRiskAssessmentsSettingsNewDeviceRequestContent build() { return new UpdateRiskAssessmentsSettingsNewDeviceRequestContent(rememberFor, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java index 4a2aa240f..bc1340742 100644 --- a/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/riskassessments/types/UpdateRiskAssessmentsSettingsRequestContent.java @@ -76,6 +76,10 @@ public interface EnabledStage { public interface _FinalStage { UpdateRiskAssessmentsSettingsRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage enabled(boolean enabled) { public UpdateRiskAssessmentsSettingsRequestContent build() { return new UpdateRiskAssessmentsSettingsRequestContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncPermissionsClient.java index 4c9bbab90..8d9f39b95 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncPermissionsClient.java @@ -36,6 +36,14 @@ public CompletableFuture> list(St return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. */ @@ -53,14 +61,14 @@ public CompletableFuture> list( } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public CompletableFuture add(String id, AddRolePermissionsRequestContent request) { return this.rawClient.add(id, request).thenApply(response -> response.body()); } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public CompletableFuture add( String id, AddRolePermissionsRequestContent request, RequestOptions requestOptions) { @@ -68,14 +76,14 @@ public CompletableFuture add( } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public CompletableFuture delete(String id, DeleteRolePermissionsRequestContent request) { return this.rawClient.delete(id, request).thenApply(response -> response.body()); } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public CompletableFuture delete( String id, DeleteRolePermissionsRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java index f3c28c499..685f92da5 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawPermissionsClient.java @@ -54,6 +54,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListRolePermissionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. */ @@ -77,6 +85,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -170,23 +183,27 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public CompletableFuture> add(String id, AddRolePermissionsRequestContent request) { return add(id, request, null); } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public CompletableFuture> add( String id, AddRolePermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +212,7 @@ public CompletableFuture> add( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -259,7 +276,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public CompletableFuture> delete( String id, DeleteRolePermissionsRequestContent request) { @@ -267,16 +284,20 @@ public CompletableFuture> delete( } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public CompletableFuture> delete( String id, DeleteRolePermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -285,7 +306,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java index b8332b3df..a6d626efa 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncRawUsersClient.java @@ -47,40 +47,61 @@ public AsyncRawUsersClient(ClientOptions clientOptions) { } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture>> list(String id) { return list(id, ListRoleUsersRequestParameters.builder().build()); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListRoleUsersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture>> list( String id, ListRoleUsersRequestParameters request) { @@ -88,20 +109,20 @@ public CompletableFuture> } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture>> list( String id, ListRoleUsersRequestParameters request, RequestOptions requestOptions) { @@ -115,6 +136,11 @@ public CompletableFuture> httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -203,25 +229,29 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public CompletableFuture> assign(String id, AssignRoleUsersRequestContent request) { return assign(id, request, null); } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public CompletableFuture> assign( String id, AssignRoleUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("users") - .build(); + .addPathSegments("users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -230,7 +260,7 @@ public CompletableFuture> assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/roles/AsyncUsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/AsyncUsersClient.java index 4e55dcd99..fd83ef325 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/AsyncUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/AsyncUsersClient.java @@ -29,60 +29,80 @@ public AsyncRawUsersClient withRawResponse() { } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list(String id, ListRoleUsersRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public CompletableFuture> list( String id, ListRoleUsersRequestParameters request, RequestOptions requestOptions) { @@ -90,16 +110,16 @@ public CompletableFuture> list( } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public CompletableFuture assign(String id, AssignRoleUsersRequestContent request) { return this.rawClient.assign(id, request).thenApply(response -> response.body()); } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public CompletableFuture assign( String id, AssignRoleUsersRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/roles/PermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/PermissionsClient.java index 760e9b771..d779758e9 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/PermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/PermissionsClient.java @@ -35,6 +35,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. */ @@ -52,28 +59,28 @@ public SyncPagingIterable list( } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public void add(String id, AddRolePermissionsRequestContent request) { this.rawClient.add(id, request).body(); } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public void add(String id, AddRolePermissionsRequestContent request, RequestOptions requestOptions) { this.rawClient.add(id, request, requestOptions).body(); } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public void delete(String id, DeleteRolePermissionsRequestContent request) { this.rawClient.delete(id, request).body(); } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public void delete(String id, DeleteRolePermissionsRequestContent request, RequestOptions requestOptions) { this.rawClient.delete(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java index 575516b6f..ec8099904 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawPermissionsClient.java @@ -48,6 +48,14 @@ public ManagementApiHttpResponse> return list(id, ListRolePermissionsRequestParameters.builder().build()); } + /** + * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListRolePermissionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve detailed list (name, description, resource server) of permissions granted by a specified user role. */ @@ -71,6 +79,11 @@ public ManagementApiHttpResponse> QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -131,23 +144,27 @@ public ManagementApiHttpResponse> } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public ManagementApiHttpResponse add(String id, AddRolePermissionsRequestContent request) { return add(id, request, null); } /** - * Add one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> to a specified user role. + * Add one or more permissions to a specified user role. */ public ManagementApiHttpResponse add( String id, AddRolePermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +173,7 @@ public ManagementApiHttpResponse add( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -199,23 +216,27 @@ public ManagementApiHttpResponse add( } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public ManagementApiHttpResponse delete(String id, DeleteRolePermissionsRequestContent request) { return delete(id, request, null); } /** - * Remove one or more <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/manage-permissions">permissions</a> from a specified user role. + * Remove one or more permissions from a specified user role. */ public ManagementApiHttpResponse delete( String id, DeleteRolePermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -224,7 +245,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java index df0d01767..7e8301435 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/RawUsersClient.java @@ -42,40 +42,60 @@ public RawUsersClient(ClientOptions clientOptions) { } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public ManagementApiHttpResponse> list(String id) { return list(id, ListRoleUsersRequestParameters.builder().build()); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListRoleUsersRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public ManagementApiHttpResponse> list( String id, ListRoleUsersRequestParameters request) { @@ -83,20 +103,20 @@ public ManagementApiHttpResponse> list( } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public ManagementApiHttpResponse> list( String id, ListRoleUsersRequestParameters request, RequestOptions requestOptions) { @@ -110,6 +130,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -168,25 +193,29 @@ public ManagementApiHttpResponse> list( } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public ManagementApiHttpResponse assign(String id, AssignRoleUsersRequestContent request) { return assign(id, request, null); } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public ManagementApiHttpResponse assign( String id, AssignRoleUsersRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("roles") .addPathSegment(id) - .addPathSegments("users") - .build(); + .addPathSegments("users"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +224,7 @@ public ManagementApiHttpResponse assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/roles/UsersClient.java b/src/main/java/com/auth0/client/mgmt/roles/UsersClient.java index ef6849e83..f7a2823bf 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/UsersClient.java +++ b/src/main/java/com/auth0/client/mgmt/roles/UsersClient.java @@ -28,60 +28,80 @@ public RawUsersClient withRawResponse() { } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. + *

    This endpoint supports two types of pagination:

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    + *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    + *

    Checkpoint Pagination

    + *

    To search by checkpoint, use the following parameters:

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list(String id, ListRoleUsersRequestParameters request) { return this.rawClient.list(id, request).body(); } /** - * Retrieve list of users associated with a specific role. For Dashboard instructions, review <a href="https://auth0.com/docs/manage-users/access-control/configure-core-rbac/roles/view-users-assigned-to-roles">View Users Assigned to Roles</a>. + * Retrieve list of users associated with a specific role. For Dashboard instructions, review View Users Assigned to Roles. *

    This endpoint supports two types of pagination:

    - *

    <ul> - * <li>Offset pagination</li> - * <li>Checkpoint pagination</li> - * </ul>

    + *

      + *
    • Offset pagination
    • + *
    • Checkpoint pagination
    • + *

    *

    Checkpoint pagination must be used if you need to retrieve more than 1000 organization members.

    - *

    <h2>Checkpoint Pagination</h2>

    + *

    Checkpoint Pagination

    *

    To search by checkpoint, use the following parameters:

    - *

    <ul> - * <li><code>from</code>: Optional id from which to start selection.</li> - * <li><code>take</code>: The total amount of entries to retrieve when using the from parameter. Defaults to 50.</li> - * </ul>

    - *

    <b>Note</b>: The first time you call this endpoint using checkpoint pagination, omit the <code>from</code> parameter. If there are more results, a <code>next</code> value is included in the response. You can use this for subsequent API calls. When <code>next</code> is no longer included in the response, no pages are remaining.

    + *

      + *
    • from: Optional id from which to start selection.
    • + *
    • take: The total amount of entries to retrieve when using the from parameter. Defaults to 50.
    • + *

    + *

    Note: The first time you call this endpoint using checkpoint pagination, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no pages are remaining.

    */ public SyncPagingIterable list( String id, ListRoleUsersRequestParameters request, RequestOptions requestOptions) { @@ -89,16 +109,16 @@ public SyncPagingIterable list( } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public void assign(String id, AssignRoleUsersRequestContent request) { this.rawClient.assign(id, request).body(); } /** - * Assign one or more users to an existing user role. To learn more, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action.

    + * Assign one or more users to an existing user role. To learn more, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action.

    */ public void assign(String id, AssignRoleUsersRequestContent request, RequestOptions requestOptions) { this.rawClient.assign(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/AddRolePermissionsRequestContent.java b/src/main/java/com/auth0/client/mgmt/roles/types/AddRolePermissionsRequestContent.java index f8856de96..fcc633ce1 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/AddRolePermissionsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/AddRolePermissionsRequestContent.java @@ -110,5 +110,15 @@ public Builder addAllPermissions(List permissions) { public AddRolePermissionsRequestContent build() { return new AddRolePermissionsRequestContent(permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/AssignRoleUsersRequestContent.java b/src/main/java/com/auth0/client/mgmt/roles/types/AssignRoleUsersRequestContent.java index c91daef11..851861f2c 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/AssignRoleUsersRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/AssignRoleUsersRequestContent.java @@ -108,5 +108,15 @@ public Builder addAllUsers(List users) { public AssignRoleUsersRequestContent build() { return new AssignRoleUsersRequestContent(users, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/DeleteRolePermissionsRequestContent.java b/src/main/java/com/auth0/client/mgmt/roles/types/DeleteRolePermissionsRequestContent.java index c611cacf3..a78badc0e 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/DeleteRolePermissionsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/DeleteRolePermissionsRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllPermissions(List permissions) { public DeleteRolePermissionsRequestContent build() { return new DeleteRolePermissionsRequestContent(permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java index 0f0635376..a03022401 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/ListRolePermissionsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListRolePermissionsRequestParameters build() { return new ListRolePermissionsRequestParameters(perPage, page, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java index 15b28d60a..58aecfb6b 100644 --- a/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/roles/types/ListRoleUsersRequestParameters.java @@ -180,5 +180,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListRoleUsersRequestParameters build() { return new ListRoleUsersRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java index 445774c61..84346eba1 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawCustomTextClient.java @@ -55,16 +55,20 @@ public CompletableFuture>> list( SelfServiceProfileCustomTextLanguageEnum language, SelfServiceProfileCustomTextPageEnum page, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) .addPathSegments("custom-text") .addPathSegment(language.toString()) - .addPathSegment(page.toString()) - .build(); + .addPathSegment(page.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -149,14 +153,18 @@ public CompletableFuture>> set( SelfServiceProfileCustomTextPageEnum page, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) .addPathSegments("custom-text") .addPathSegment(language.toString()) - .addPathSegment(page.toString()) - .build(); + .addPathSegment(page.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -165,7 +173,7 @@ public CompletableFuture>> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java index fbcaf4f45..4b3cf93c8 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncRawSsoTicketClient.java @@ -46,6 +46,15 @@ public CompletableFuture> create( + String id, RequestOptions requestOptions) { + return create( + id, CreateSelfServiceProfileSsoTicketRequestContent.builder().build(), requestOptions); + } + /** * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. */ @@ -59,12 +68,16 @@ public CompletableFuture> create( String id, CreateSelfServiceProfileSsoTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) - .addPathSegments("sso-ticket") - .build(); + .addPathSegments("sso-ticket"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -73,7 +86,7 @@ public CompletableFuture> revoke(String profileI */ public CompletableFuture> revoke( String profileId, String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(profileId) .addPathSegments("sso-ticket") .addPathSegment(id) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncSsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncSsoTicketClient.java index ddcac596e..9be8e44f3 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/AsyncSsoTicketClient.java @@ -33,6 +33,14 @@ public CompletableFuture creat return this.rawClient.create(id).thenApply(response -> response.body()); } + /** + * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. + */ + public CompletableFuture create( + String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).thenApply(response -> response.body()); + } + /** * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java index 72dd8edb4..6568413d1 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawCustomTextClient.java @@ -51,16 +51,20 @@ public ManagementApiHttpResponse> list( SelfServiceProfileCustomTextLanguageEnum language, SelfServiceProfileCustomTextPageEnum page, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) .addPathSegments("custom-text") .addPathSegment(language.toString()) - .addPathSegment(page.toString()) - .build(); + .addPathSegment(page.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -124,14 +128,18 @@ public ManagementApiHttpResponse> set( SelfServiceProfileCustomTextPageEnum page, Map request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) .addPathSegments("custom-text") .addPathSegment(language.toString()) - .addPathSegment(page.toString()) - .build(); + .addPathSegment(page.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -140,7 +148,7 @@ public ManagementApiHttpResponse> set( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PUT", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java index 0d5cbed7e..6dec38a8e 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/RawSsoTicketClient.java @@ -41,6 +41,15 @@ public ManagementApiHttpResponse create( + String id, RequestOptions requestOptions) { + return create( + id, CreateSelfServiceProfileSsoTicketRequestContent.builder().build(), requestOptions); + } + /** * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. */ @@ -54,12 +63,16 @@ public ManagementApiHttpResponse create( String id, CreateSelfServiceProfileSsoTicketRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(id) - .addPathSegments("sso-ticket") - .build(); + .addPathSegments("sso-ticket"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -68,7 +81,7 @@ public ManagementApiHttpResponse revoke(String profileId, String id) { * Clients should treat these 202 responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found. */ public ManagementApiHttpResponse revoke(String profileId, String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("self-service-profiles") .addPathSegment(profileId) .addPathSegments("sso-ticket") .addPathSegment(id) - .addPathSegments("revoke") - .build(); + .addPathSegments("revoke"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/SsoTicketClient.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/SsoTicketClient.java index d6dabe9a1..c3bd7ec23 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/SsoTicketClient.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/SsoTicketClient.java @@ -32,6 +32,13 @@ public CreateSelfServiceProfileSsoTicketResponseContent create(String id) { return this.rawClient.create(id).body(); } + /** + * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. + */ + public CreateSelfServiceProfileSsoTicketResponseContent create(String id, RequestOptions requestOptions) { + return this.rawClient.create(id, requestOptions).body(); + } + /** * Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile. */ diff --git a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java index a948402ca..ce5799956 100644 --- a/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/selfserviceprofiles/types/CreateSelfServiceProfileSsoTicketRequestContent.java @@ -316,5 +316,15 @@ public CreateSelfServiceProfileSsoTicketRequestContent build() { useForOrganizationDiscovery, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java index 8a7430677..bf7ba8354 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/AsyncRawSettingsClient.java @@ -47,6 +47,14 @@ public CompletableFuture> get( + RequestOptions requestOptions) { + return get(GetTenantSettingsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve tenant settings. A list of fields to include or exclude may also be specified. */ @@ -71,6 +79,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -145,6 +158,14 @@ public CompletableFuture> update( + RequestOptions requestOptions) { + return update(UpdateTenantSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update settings for a tenant. */ @@ -158,10 +179,14 @@ public CompletableFuture> update( UpdateTenantSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tenants/settings") - .build(); + .addPathSegments("tenants/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -170,7 +195,7 @@ public CompletableFuture get() { return this.rawClient.get().thenApply(response -> response.body()); } + /** + * Retrieve tenant settings. A list of fields to include or exclude may also be specified. + */ + public CompletableFuture get(RequestOptions requestOptions) { + return this.rawClient.get(requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve tenant settings. A list of fields to include or exclude may also be specified. */ @@ -57,6 +64,13 @@ public CompletableFuture update() { return this.rawClient.update().thenApply(response -> response.body()); } + /** + * Update settings for a tenant. + */ + public CompletableFuture update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).thenApply(response -> response.body()); + } + /** * Update settings for a tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java b/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java index 14304f903..8731df6b0 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/RawSettingsClient.java @@ -43,6 +43,13 @@ public ManagementApiHttpResponse get() { return get(GetTenantSettingsRequestParameters.builder().build()); } + /** + * Retrieve tenant settings. A list of fields to include or exclude may also be specified. + */ + public ManagementApiHttpResponse get(RequestOptions requestOptions) { + return get(GetTenantSettingsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve tenant settings. A list of fields to include or exclude may also be specified. */ @@ -66,6 +73,11 @@ public ManagementApiHttpResponse get( QueryStringMapper.addQueryParameter( httpUrl, "include_fields", request.getIncludeFields().orElse(null), false); } + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -117,6 +129,13 @@ public ManagementApiHttpResponse update() { return update(UpdateTenantSettingsRequestContent.builder().build()); } + /** + * Update settings for a tenant. + */ + public ManagementApiHttpResponse update(RequestOptions requestOptions) { + return update(UpdateTenantSettingsRequestContent.builder().build(), requestOptions); + } + /** * Update settings for a tenant. */ @@ -130,10 +149,14 @@ public ManagementApiHttpResponse update( */ public ManagementApiHttpResponse update( UpdateTenantSettingsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("tenants/settings") - .build(); + .addPathSegments("tenants/settings"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -142,7 +165,7 @@ public ManagementApiHttpResponse update( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/tenants/SettingsClient.java b/src/main/java/com/auth0/client/mgmt/tenants/SettingsClient.java index fe89bda7e..e8c3060a8 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/SettingsClient.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/SettingsClient.java @@ -34,6 +34,13 @@ public GetTenantSettingsResponseContent get() { return this.rawClient.get().body(); } + /** + * Retrieve tenant settings. A list of fields to include or exclude may also be specified. + */ + public GetTenantSettingsResponseContent get(RequestOptions requestOptions) { + return this.rawClient.get(requestOptions).body(); + } + /** * Retrieve tenant settings. A list of fields to include or exclude may also be specified. */ @@ -56,6 +63,13 @@ public UpdateTenantSettingsResponseContent update() { return this.rawClient.update().body(); } + /** + * Update settings for a tenant. + */ + public UpdateTenantSettingsResponseContent update(RequestOptions requestOptions) { + return this.rawClient.update(requestOptions).body(); + } + /** * Update settings for a tenant. */ diff --git a/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java index d4967a56a..47312ecdc 100644 --- a/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/tenants/types/GetTenantSettingsRequestParameters.java @@ -192,5 +192,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetTenantSettingsRequestParameters build() { return new GetTenantSettingsRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + 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 173cc06bd..c5df12183 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 @@ -1531,5 +1531,15 @@ public UpdateTenantSettingsRequestContent build() { phoneConsolidatedExperience, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Action.java b/src/main/java/com/auth0/client/mgmt/types/Action.java index 0cb6f0fc6..74832066e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Action.java +++ b/src/main/java/com/auth0/client/mgmt/types/Action.java @@ -598,5 +598,15 @@ public Action build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBase.java b/src/main/java/com/auth0/client/mgmt/types/ActionBase.java index 5a4f5c3e4..af1bfccfc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBase.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBase.java @@ -253,5 +253,15 @@ public ActionBase build() { return new ActionBase( id, name, supportedTriggers, allChangesDeployed, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java b/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java index 54cde00d1..6f2dae6a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBinding.java @@ -238,5 +238,15 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public ActionBinding build() { return new ActionBinding(id, triggerId, displayName, action, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBindingRef.java b/src/main/java/com/auth0/client/mgmt/types/ActionBindingRef.java index 3be4a031d..5ae48d725 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBindingRef.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBindingRef.java @@ -120,5 +120,15 @@ public Builder value(String value) { public ActionBindingRef build() { return new ActionBindingRef(type, value, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionBindingWithRef.java b/src/main/java/com/auth0/client/mgmt/types/ActionBindingWithRef.java index 530a28018..3349d1f58 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionBindingWithRef.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionBindingWithRef.java @@ -100,6 +100,10 @@ public interface RefStage { public interface _FinalStage { ActionBindingWithRef build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The name of the binding.

    */ @@ -187,5 +191,17 @@ public _FinalStage displayName(Optional displayName) { public ActionBindingWithRef build() { return new ActionBindingWithRef(ref, displayName, secrets, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionDeployedVersion.java b/src/main/java/com/auth0/client/mgmt/types/ActionDeployedVersion.java index c30564982..e98aca30c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionDeployedVersion.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionDeployedVersion.java @@ -572,5 +572,15 @@ public ActionDeployedVersion build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionError.java b/src/main/java/com/auth0/client/mgmt/types/ActionError.java index 490a8520c..0b6e8f9fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionError.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionError.java @@ -136,5 +136,15 @@ public Builder url(String url) { public ActionError build() { return new ActionError(id, msg, url, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionExecutionResult.java b/src/main/java/com/auth0/client/mgmt/types/ActionExecutionResult.java index a7e149c1a..b914726ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionExecutionResult.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionExecutionResult.java @@ -184,5 +184,15 @@ public Builder endedAt(OffsetDateTime endedAt) { public ActionExecutionResult build() { return new ActionExecutionResult(actionName, error, startedAt, endedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleAction.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleAction.java index 1ede76781..e7d3b4ce0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleAction.java @@ -227,5 +227,15 @@ public ActionModuleAction build() { supportedTriggers, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependency.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependency.java index 27e89b890..43661a586 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependency.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependency.java @@ -126,5 +126,15 @@ public Builder version(String version) { public ActionModuleDependency build() { return new ActionModuleDependency(name, version, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java index 75708a39a..3a515f442 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleDependencyRequest.java @@ -94,6 +94,10 @@ public interface VersionStage { public interface _FinalStage { ActionModuleDependencyRequest build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage version(@NotNull String version) { public ActionModuleDependencyRequest build() { return new ActionModuleDependencyRequest(name, version, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleListItem.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleListItem.java index f36626cc8..aee4efd73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleListItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleListItem.java @@ -392,5 +392,15 @@ public ActionModuleListItem build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleReference.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleReference.java index 6f12cdfd3..558dd1de9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleReference.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleReference.java @@ -190,5 +190,15 @@ public ActionModuleReference build() { return new ActionModuleReference( moduleId, moduleName, moduleVersionId, moduleVersionNumber, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecret.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecret.java index ee4bdcc2c..05e63b17d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecret.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecret.java @@ -127,5 +127,15 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public ActionModuleSecret build() { return new ActionModuleSecret(name, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java index fa9fa3501..cbb2155b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleSecretRequest.java @@ -94,6 +94,10 @@ public interface ValueStage { public interface _FinalStage { ActionModuleSecretRequest build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage value(@NotNull String value) { public ActionModuleSecretRequest build() { return new ActionModuleSecretRequest(name, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersion.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersion.java index e66ba404e..2d4f8cd6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersion.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersion.java @@ -283,5 +283,15 @@ public ActionModuleVersion build() { return new ActionModuleVersion( id, moduleId, versionNumber, code, secrets, dependencies, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersionReference.java b/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersionReference.java index 127927ec8..6c20def51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersionReference.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionModuleVersionReference.java @@ -252,5 +252,15 @@ public ActionModuleVersionReference build() { return new ActionModuleVersionReference( id, versionNumber, code, dependencies, secrets, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionSecretRequest.java b/src/main/java/com/auth0/client/mgmt/types/ActionSecretRequest.java index 0e2f8be7c..f6a71766f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionSecretRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionSecretRequest.java @@ -126,5 +126,15 @@ public Builder value(String value) { public ActionSecretRequest build() { return new ActionSecretRequest(name, value, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionSecretResponse.java b/src/main/java/com/auth0/client/mgmt/types/ActionSecretResponse.java index a90411457..c02ba253e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionSecretResponse.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionSecretResponse.java @@ -127,5 +127,15 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public ActionSecretResponse build() { return new ActionSecretResponse(name, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java b/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java index f904a3396..91b8c3163 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTrigger.java @@ -158,6 +158,10 @@ public interface IdStage { public interface _FinalStage { ActionTrigger build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The version of a trigger. v1, v2, etc.

    */ @@ -363,5 +367,17 @@ public ActionTrigger build() { bindingPolicy, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java index bb8740e73..d95b111ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionTriggerCompatibleTrigger.java @@ -88,6 +88,10 @@ public interface VersionStage { public interface _FinalStage { ActionTriggerCompatibleTrigger build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -131,5 +135,17 @@ public _FinalStage version(@NotNull String version) { public ActionTriggerCompatibleTrigger build() { return new ActionTriggerCompatibleTrigger(id, version, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionVersion.java b/src/main/java/com/auth0/client/mgmt/types/ActionVersion.java index 8301f2ec8..2f31626f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionVersion.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionVersion.java @@ -572,5 +572,15 @@ public ActionVersion build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ActionVersionDependency.java b/src/main/java/com/auth0/client/mgmt/types/ActionVersionDependency.java index d61c7e1bf..52c2a92ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ActionVersionDependency.java +++ b/src/main/java/com/auth0/client/mgmt/types/ActionVersionDependency.java @@ -157,5 +157,15 @@ public Builder registryUrl(String registryUrl) { public ActionVersionDependency build() { return new ActionVersionDependency(name, version, registryUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java index ba38c87d2..1c87c51f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterById.java @@ -76,6 +76,10 @@ public interface IdStage { public interface _FinalStage { AculClientFilterById build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage id(@NotNull String id) { public AculClientFilterById build() { return new AculClientFilterById(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterByMetadata.java b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterByMetadata.java index cdd5fec22..da345b73f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculClientFilterByMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculClientFilterByMetadata.java @@ -101,5 +101,15 @@ public Builder metadata(String key, Object value) { public AculClientFilterByMetadata build() { return new AculClientFilterByMetadata(metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + 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 76a012d07..6a073600c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculConfigsItem.java @@ -200,6 +200,10 @@ public interface ScreenStage { public interface _FinalStage { AculConfigsItem build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage renderingMode(Optional renderingMode); _FinalStage renderingMode(AculRenderingModeEnum renderingMode); @@ -491,5 +495,17 @@ public AculConfigsItem build() { filters, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java index 25f840446..24a4981a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterById.java @@ -76,6 +76,10 @@ public interface IdStage { public interface _FinalStage { AculDomainFilterById build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage id(@NotNull String id) { public AculDomainFilterById build() { return new AculDomainFilterById(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterByMetadata.java b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterByMetadata.java index dc6d6b579..501147c3d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterByMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculDomainFilterByMetadata.java @@ -101,5 +101,15 @@ public Builder metadata(String key, Object value) { public AculDomainFilterByMetadata build() { return new AculDomainFilterByMetadata(metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculFilters.java b/src/main/java/com/auth0/client/mgmt/types/AculFilters.java index 17818338d..52634da0a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculFilters.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculFilters.java @@ -184,5 +184,15 @@ public Builder domains(List domains) { public AculFilters build() { return new AculFilters(matchType, clients, organizations, domains, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculHeadTag.java b/src/main/java/com/auth0/client/mgmt/types/AculHeadTag.java index f7f55a362..efa3491c7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculHeadTag.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculHeadTag.java @@ -145,5 +145,15 @@ public Builder content(String content) { public AculHeadTag build() { return new AculHeadTag(tag, attributes, content, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java index 8463d0302..99799dbb0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterById.java @@ -76,6 +76,10 @@ public interface IdStage { public interface _FinalStage { AculOrganizationFilterById build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage id(@NotNull String id) { public AculOrganizationFilterById build() { return new AculOrganizationFilterById(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterByMetadata.java b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterByMetadata.java index 9f03d014e..5c52af956 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterByMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/AculOrganizationFilterByMetadata.java @@ -101,5 +101,15 @@ public Builder metadata(String key, Object value) { public AculOrganizationFilterByMetadata build() { return new AculOrganizationFilterByMetadata(metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AddOrganizationConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AddOrganizationConnectionResponseContent.java index b8d28eec8..bcddc1c38 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AddOrganizationConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AddOrganizationConnectionResponseContent.java @@ -225,5 +225,15 @@ public AddOrganizationConnectionResponseContent build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AssociateOrganizationClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AssociateOrganizationClientGrantResponseContent.java index 170d20fbb..3fbbf9318 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AssociateOrganizationClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AssociateOrganizationClientGrantResponseContent.java @@ -247,5 +247,15 @@ public AssociateOrganizationClientGrantResponseContent build() { return new AssociateOrganizationClientGrantResponseContent( id, clientId, audience, scope, organizationUsage, allowAnyOrganization, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaArkoseResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaArkoseResponseContent.java index e8b8ceee1..f1eb12758 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaArkoseResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaArkoseResponseContent.java @@ -191,5 +191,15 @@ public AttackProtectionCaptchaArkoseResponseContent build() { return new AttackProtectionCaptchaArkoseResponseContent( siteKey, failOpen, clientSubdomain, verifySubdomain, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java index 040e95363..d3a28c44c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeRequest.java @@ -76,6 +76,10 @@ public interface FailOpenStage { public interface _FinalStage { AttackProtectionCaptchaAuthChallengeRequest build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage failOpen(boolean failOpen) { public AttackProtectionCaptchaAuthChallengeRequest build() { return new AttackProtectionCaptchaAuthChallengeRequest(failOpen, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeResponseContent.java index cfd7fc991..d3615a3bb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaAuthChallengeResponseContent.java @@ -99,5 +99,15 @@ public Builder failOpen(Boolean failOpen) { public AttackProtectionCaptchaAuthChallengeResponseContent build() { return new AttackProtectionCaptchaAuthChallengeResponseContent(failOpen, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaFriendlyCaptchaResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaFriendlyCaptchaResponseContent.java index 1fe824f41..32d64b8ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaFriendlyCaptchaResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaFriendlyCaptchaResponseContent.java @@ -99,5 +99,15 @@ public Builder siteKey(String siteKey) { public AttackProtectionCaptchaFriendlyCaptchaResponseContent build() { return new AttackProtectionCaptchaFriendlyCaptchaResponseContent(siteKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaHcaptchaResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaHcaptchaResponseContent.java index e77765a21..c6a01c489 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaHcaptchaResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaHcaptchaResponseContent.java @@ -99,5 +99,15 @@ public Builder siteKey(String siteKey) { public AttackProtectionCaptchaHcaptchaResponseContent build() { return new AttackProtectionCaptchaHcaptchaResponseContent(siteKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaEnterpriseResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaEnterpriseResponseContent.java index 0c0c64614..3b694f3cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaEnterpriseResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaEnterpriseResponseContent.java @@ -128,5 +128,15 @@ public AttackProtectionCaptchaRecaptchaEnterpriseResponseContent build() { return new AttackProtectionCaptchaRecaptchaEnterpriseResponseContent( siteKey, projectId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaV2ResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaV2ResponseContent.java index 6291153df..1e47846b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaV2ResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionCaptchaRecaptchaV2ResponseContent.java @@ -99,5 +99,15 @@ public Builder siteKey(String siteKey) { public AttackProtectionCaptchaRecaptchaV2ResponseContent build() { return new AttackProtectionCaptchaRecaptchaV2ResponseContent(siteKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java index 5de31a941..1182984b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaArkose.java @@ -141,6 +141,10 @@ public interface SecretStage { public interface _FinalStage { AttackProtectionUpdateCaptchaArkose build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The subdomain used for client requests to the Arkose captcha provider.

    */ @@ -279,5 +283,17 @@ public AttackProtectionUpdateCaptchaArkose build() { return new AttackProtectionUpdateCaptchaArkose( siteKey, secret, clientSubdomain, verifySubdomain, failOpen, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java index f3d194749..7d7fd0772 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaFriendlyCaptcha.java @@ -96,6 +96,10 @@ public interface SecretStage { public interface _FinalStage { AttackProtectionUpdateCaptchaFriendlyCaptcha build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage secret(@NotNull String secret) { public AttackProtectionUpdateCaptchaFriendlyCaptcha build() { return new AttackProtectionUpdateCaptchaFriendlyCaptcha(siteKey, secret, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java index dbfc6c94a..6861b8d97 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaHcaptcha.java @@ -96,6 +96,10 @@ public interface SecretStage { public interface _FinalStage { AttackProtectionUpdateCaptchaHcaptcha build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage secret(@NotNull String secret) { public AttackProtectionUpdateCaptchaHcaptcha build() { return new AttackProtectionUpdateCaptchaHcaptcha(siteKey, secret, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java index b58eb78a7..474b142cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaEnterprise.java @@ -114,6 +114,10 @@ public interface ProjectIdStage { public interface _FinalStage { AttackProtectionUpdateCaptchaRecaptchaEnterprise build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -178,5 +182,17 @@ public AttackProtectionUpdateCaptchaRecaptchaEnterprise build() { return new AttackProtectionUpdateCaptchaRecaptchaEnterprise( siteKey, apiKey, projectId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java index 3fcc85181..d440676bb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java +++ b/src/main/java/com/auth0/client/mgmt/types/AttackProtectionUpdateCaptchaRecaptchaV2.java @@ -96,6 +96,10 @@ public interface SecretStage { public interface _FinalStage { AttackProtectionUpdateCaptchaRecaptchaV2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage secret(@NotNull String secret) { public AttackProtectionUpdateCaptchaRecaptchaV2 build() { return new AttackProtectionUpdateCaptchaRecaptchaV2(siteKey, secret, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/BrandingColors.java index b8c8027b1..405c383c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingColors.java @@ -122,5 +122,15 @@ public Builder pageBackground(BrandingPageBackground pageBackground) { public BrandingColors build() { return new BrandingColors(primary, pageBackground, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingFont.java b/src/main/java/com/auth0/client/mgmt/types/BrandingFont.java index 4aae99c01..2158c0d43 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingFont.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingFont.java @@ -97,5 +97,15 @@ public Builder url(String url) { public BrandingFont build() { return new BrandingFont(url, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java index ef00067ff..9fc5795e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeBorders.java @@ -235,6 +235,10 @@ public interface WidgetCornerRadiusStage { public interface _FinalStage { BrandingThemeBorders build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -398,5 +402,17 @@ public BrandingThemeBorders build() { widgetCornerRadius, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java index 141a2ce34..5c0435edb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeColors.java @@ -450,6 +450,10 @@ public interface WidgetBorderStage { public interface _FinalStage { BrandingThemeColors build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Base Focus Color

    */ @@ -859,5 +863,17 @@ public BrandingThemeColors build() { widgetBorder, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java index 8f8c99d0d..7c99b687c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontBodyText.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontBodyText build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontBodyText build() { return new BrandingThemeFontBodyText(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java index 71b1c2355..48db81faa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontButtonsText.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontButtonsText build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontButtonsText build() { return new BrandingThemeFontButtonsText(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java index b29399903..7e806c532 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontInputLabels.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontInputLabels build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontInputLabels build() { return new BrandingThemeFontInputLabels(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java index 2d0535c8f..3e627361c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontLinks.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontLinks build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontLinks build() { return new BrandingThemeFontLinks(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java index a665fc7d0..f1542e138 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontSubtitle.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontSubtitle build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontSubtitle build() { return new BrandingThemeFontSubtitle(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java index 3e39a7c76..095582ee1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFontTitle.java @@ -93,6 +93,10 @@ public interface SizeStage { public interface _FinalStage { BrandingThemeFontTitle build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -141,5 +145,17 @@ public _FinalStage size(double size) { public BrandingThemeFontTitle build() { return new BrandingThemeFontTitle(bold, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java index 675546673..d04e9b325 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeFonts.java @@ -205,6 +205,10 @@ public interface TitleStage { public interface _FinalStage { BrandingThemeFonts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -343,5 +347,17 @@ public BrandingThemeFonts build() { title, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java index d3f95c3c6..3571687ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemePageBackground.java @@ -112,6 +112,10 @@ public interface PageLayoutStage { public interface _FinalStage { BrandingThemePageBackground build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public BrandingThemePageBackground build() { return new BrandingThemePageBackground( backgroundColor, backgroundImageUrl, pageLayout, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java index 199927eab..3a8f15623 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java +++ b/src/main/java/com/auth0/client/mgmt/types/BrandingThemeWidget.java @@ -141,6 +141,10 @@ public interface SocialButtonsLayoutStage { public interface _FinalStage { BrandingThemeWidget build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -230,5 +234,17 @@ public BrandingThemeWidget build() { return new BrandingThemeWidget( headerTextAlignment, logoHeight, logoPosition, logoUrl, socialButtonsLayout, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreChangePasswordStage.java b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreChangePasswordStage.java index e53ada446..65934b645 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreChangePasswordStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreChangePasswordStage.java @@ -34,7 +34,7 @@ private BreachedPasswordDetectionPreChangePasswordStage( /** * @return Action to take when a breached password is detected during a password reset. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -87,7 +87,7 @@ public Builder from(BreachedPasswordDetectionPreChangePasswordStage other) { /** *

    Action to take when a breached password is detected during a password reset. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -103,5 +103,15 @@ public Builder shields(List additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreUserRegistrationStage.java b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreUserRegistrationStage.java index 27b56006d..30c1c041d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreUserRegistrationStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionPreUserRegistrationStage.java @@ -34,7 +34,7 @@ private BreachedPasswordDetectionPreUserRegistrationStage( /** * @return Action to take when a breached password is detected during a signup. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -87,7 +87,7 @@ public Builder from(BreachedPasswordDetectionPreUserRegistrationStage other) { /** *

    Action to take when a breached password is detected during a signup. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -103,5 +103,15 @@ public Builder shields(List additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionStage.java b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionStage.java index c8fae44dc..4e8cf8ee7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/BreachedPasswordDetectionStage.java @@ -118,5 +118,15 @@ public Builder preChangePassword(BreachedPasswordDetectionPreChangePasswordStage public BreachedPasswordDetectionStage build() { return new BreachedPasswordDetectionStage(preUserRegistration, preChangePassword, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/BulkUpdateAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/BulkUpdateAculResponseContent.java index 26fc7d811..825118573 100644 --- a/src/main/java/com/auth0/client/mgmt/types/BulkUpdateAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/BulkUpdateAculResponseContent.java @@ -102,5 +102,15 @@ public Builder addAllConfigs(List configs) { public BulkUpdateAculResponseContent build() { return new BulkUpdateAculResponseContent(configs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java b/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java index a69434be9..9f8a2a65c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/CertificateSubjectDnCredential.java @@ -114,6 +114,10 @@ public interface CredentialTypeStage { public interface _FinalStage { CertificateSubjectDnCredential build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for a credential.

    */ @@ -231,5 +235,17 @@ public _FinalStage name(Optional name) { public CertificateSubjectDnCredential build() { return new CertificateSubjectDnCredential(credentialType, name, subjectDn, pem, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java index d210bbfd7..e2290af69 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketIdentity.java @@ -108,6 +108,10 @@ public interface ProviderStage { public interface _FinalStage { ChangePasswordTicketIdentity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    connection_id of the identity.

    */ @@ -180,5 +184,17 @@ public _FinalStage connectionId(Optional connectionId) { public ChangePasswordTicketIdentity build() { return new ChangePasswordTicketIdentity(userId, provider, connectionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketRequestContent.java index bb8767ea5..02f1573d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketRequestContent.java @@ -84,7 +84,7 @@ public Optional getUserId() { } /** - * @return ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger. + * @return ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. */ @JsonProperty("client_id") public Optional getClientId() { @@ -263,7 +263,7 @@ public Builder userId(String userId) { } /** - *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger.

    + *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.

    */ @JsonSetter(value = "client_id", nulls = Nulls.SKIP) public Builder clientId(Optional clientId) { @@ -385,5 +385,15 @@ public ChangePasswordTicketRequestContent build() { identity, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java index c9075bfd5..cff274020 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ChangePasswordTicketResponseContent.java @@ -77,6 +77,10 @@ public interface TicketStage { public interface _FinalStage { ChangePasswordTicketResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage ticket(@NotNull String ticket) { public ChangePasswordTicketResponseContent build() { return new ChangePasswordTicketResponseContent(ticket, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + 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 4c1bf94ba..6ef265060 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Client.java +++ b/src/main/java/com/auth0/client/mgmt/types/Client.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public Client build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAws.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAws.java index 828f875ff..2c6389e89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAws.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAws.java @@ -159,5 +159,15 @@ public Builder lifetimeInSeconds(Integer lifetimeInSeconds) { public ClientAddonAws build() { return new ClientAddonAws(principal, role, lifetimeInSeconds, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureBlob.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureBlob.java index c194cdf5d..1a9a39090 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureBlob.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureBlob.java @@ -486,5 +486,15 @@ public ClientAddonAzureBlob build() { containerList, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureSb.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureSb.java index c1cc286e7..603a1b7db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureSb.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonAzureSb.java @@ -219,5 +219,15 @@ public Builder expiration(Integer expiration) { public ClientAddonAzureSb build() { return new ClientAddonAzureSb(namespace, sasKeyName, sasKey, entityPath, expiration, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonEchoSign.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonEchoSign.java index d014bbe1d..e3cfeff49 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonEchoSign.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonEchoSign.java @@ -97,5 +97,15 @@ public Builder domain(String domain) { public ClientAddonEchoSign build() { return new ClientAddonEchoSign(domain, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonEgnyte.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonEgnyte.java index 9388bb1b4..80452ae8e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonEgnyte.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonEgnyte.java @@ -97,5 +97,15 @@ public Builder domain(String domain) { public ClientAddonEgnyte build() { return new ClientAddonEgnyte(domain, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonFirebase.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonFirebase.java index 12fa19d6b..064b9ecd1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonFirebase.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonFirebase.java @@ -220,5 +220,15 @@ public ClientAddonFirebase build() { return new ClientAddonFirebase( secret, privateKeyId, privateKey, clientEmail, lifetimeInSeconds, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java index afd68b398..cf3a8a9ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonLayer.java @@ -147,6 +147,10 @@ public interface PrivateKeyStage { public interface _FinalStage { ClientAddonLayer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the property used as the unique user id in Layer. If not specified user_id is used.

    */ @@ -269,5 +273,17 @@ public _FinalStage principal(Optional principal) { public ClientAddonLayer build() { return new ClientAddonLayer(providerId, keyId, privateKey, principal, expiration, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java index b611cd19e..7cc03c9c2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonMscrm.java @@ -76,6 +76,10 @@ public interface UrlStage { public interface _FinalStage { ClientAddonMscrm build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage url(@NotNull String url) { public ClientAddonMscrm build() { return new ClientAddonMscrm(url, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonNewRelic.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonNewRelic.java index 0d939500d..e8142b037 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonNewRelic.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonNewRelic.java @@ -97,5 +97,15 @@ public Builder account(String account) { public ClientAddonNewRelic build() { return new ClientAddonNewRelic(account, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonOag.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonOag.java index 5e4fdd6e2..73f2c4c9c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonOag.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonOag.java @@ -55,5 +55,15 @@ public Builder from(ClientAddonOag other) { public ClientAddonOag build() { return new ClientAddonOag(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonOffice365.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonOffice365.java index e88081415..6a1da51f3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonOffice365.java @@ -126,5 +126,15 @@ public Builder connection(String connection) { public ClientAddonOffice365 build() { return new ClientAddonOffice365(domain, connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java index 64ed5c72a..9e3b5c231 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonRms.java @@ -76,6 +76,10 @@ public interface UrlStage { public interface _FinalStage { ClientAddonRms build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage url(@NotNull String url) { public ClientAddonRms build() { return new ClientAddonRms(url, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforce.java index 466a4b580..0b3804c3b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforce.java @@ -97,5 +97,15 @@ public Builder entityId(String entityId) { public ClientAddonSalesforce build() { return new ClientAddonSalesforce(entityId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceApi.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceApi.java index ad2557fff..94a5d7bc3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceApi.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceApi.java @@ -190,5 +190,15 @@ public ClientAddonSalesforceApi build() { return new ClientAddonSalesforceApi( clientid, principal, communityName, communityUrlSection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceSandboxApi.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceSandboxApi.java index 1f331b506..e89527312 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceSandboxApi.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSalesforceSandboxApi.java @@ -190,5 +190,15 @@ public ClientAddonSalesforceSandboxApi build() { return new ClientAddonSalesforceSandboxApi( clientid, principal, communityName, communityUrlSection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSaml.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSaml.java index 819d7512f..ab65c3128 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSaml.java @@ -487,5 +487,15 @@ public ClientAddonSaml build() { authnContextClassRef, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSapapi.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSapapi.java index 22970031e..751e807fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSapapi.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSapapi.java @@ -262,5 +262,15 @@ public ClientAddonSapapi build() { nameIdentifierFormat, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSentry.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSentry.java index 074a04fe4..b2945b41a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSentry.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSentry.java @@ -126,5 +126,15 @@ public Builder baseUrl(String baseUrl) { public ClientAddonSentry build() { return new ClientAddonSentry(orgSlug, baseUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSharePoint.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSharePoint.java index 721234415..6d2b75b5a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSharePoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSharePoint.java @@ -122,5 +122,15 @@ public Builder externalUrl(ClientAddonSharePointExternalUrl externalUrl) { public ClientAddonSharePoint build() { return new ClientAddonSharePoint(url, externalUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java index 281cdedb7..90b340c33 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSlack.java @@ -76,6 +76,10 @@ public interface TeamStage { public interface _FinalStage { ClientAddonSlack build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage team(@NotNull String team) { public ClientAddonSlack build() { return new ClientAddonSlack(team, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSpringCm.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSpringCm.java index 006352f1a..9a8e8325d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSpringCm.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSpringCm.java @@ -97,5 +97,15 @@ public Builder acsurl(String acsurl) { public ClientAddonSpringCm build() { return new ClientAddonSpringCm(acsurl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSsoIntegration.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSsoIntegration.java index 41c6a40e5..3420f8d85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonSsoIntegration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonSsoIntegration.java @@ -126,5 +126,15 @@ public Builder version(String version) { public ClientAddonSsoIntegration build() { return new ClientAddonSsoIntegration(name, version, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonWams.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonWams.java index f42f26c3c..5e6ab4798 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonWams.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonWams.java @@ -97,5 +97,15 @@ public Builder masterkey(String masterkey) { public ClientAddonWams build() { return new ClientAddonWams(masterkey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonZendesk.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonZendesk.java index 820a210e3..44c3296ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonZendesk.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonZendesk.java @@ -97,5 +97,15 @@ public Builder accountName(String accountName) { public ClientAddonZendesk build() { return new ClientAddonZendesk(accountName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddonZoom.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddonZoom.java index b7227fb21..a1fb6f101 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddonZoom.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddonZoom.java @@ -97,5 +97,15 @@ public Builder account(String account) { public ClientAddonZoom build() { return new ClientAddonZoom(account, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAddons.java b/src/main/java/com/auth0/client/mgmt/types/ClientAddons.java index ef0a3f3cb..7a3782a27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAddons.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAddons.java @@ -883,5 +883,15 @@ public ClientAddons build() { oag, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java index f7e74c5af..20e8f9f6d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethod.java @@ -144,5 +144,15 @@ public ClientAuthenticationMethod build() { return new ClientAuthenticationMethod( privateKeyJwt, tlsClientAuth, selfSignedTlsClientAuth, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java index 2b6facd10..2d0462f1d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodPrivateKeyJwt.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public ClientAuthenticationMethodPrivateKeyJwt build() { return new ClientAuthenticationMethodPrivateKeyJwt(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java index a62ae6994..ea8cb7b59 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodSelfSignedTlsClientAuth.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public ClientAuthenticationMethodSelfSignedTlsClientAuth build() { return new ClientAuthenticationMethodSelfSignedTlsClientAuth(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java index ad24c5dc2..34f2ebde4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientAuthenticationMethodTlsClientAuth.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public ClientAuthenticationMethodTlsClientAuth build() { return new ClientAuthenticationMethodTlsClientAuth(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java index cc952dc1f..1cdf0b022 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethod.java @@ -145,5 +145,15 @@ public ClientCreateAuthenticationMethod build() { return new ClientCreateAuthenticationMethod( privateKeyJwt, tlsClientAuth, selfSignedTlsClientAuth, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java index c06ecd0e4..f88ad9483 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodPrivateKeyJwt.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public ClientCreateAuthenticationMethodPrivateKeyJwt build() { return new ClientCreateAuthenticationMethodPrivateKeyJwt(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java index 01c250372..b83b46f41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCreateAuthenticationMethodTlsClientAuth.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credential public ClientCreateAuthenticationMethodTlsClientAuth build() { return new ClientCreateAuthenticationMethodTlsClientAuth(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientCredential.java b/src/main/java/com/auth0/client/mgmt/types/ClientCredential.java index 342b3fcfe..f55207a30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientCredential.java @@ -379,5 +379,15 @@ public ClientCredential build() { expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java index e1dd5e2b4..5cd722c89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientDefaultOrganization.java @@ -94,6 +94,10 @@ public interface OrganizationIdStage { public interface _FinalStage { ClientDefaultOrganization build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The default Organization usage

    */ @@ -173,5 +177,17 @@ public _FinalStage flows(List flows) { public ClientDefaultOrganization build() { return new ClientDefaultOrganization(organizationId, flows, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientEncryptionKey.java b/src/main/java/com/auth0/client/mgmt/types/ClientEncryptionKey.java index e50045c53..d4ba12296 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientEncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientEncryptionKey.java @@ -157,5 +157,15 @@ public Builder subject(String subject) { public ClientEncryptionKey build() { return new ClientEncryptionKey(pub, cert, subject, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ClientGrantResponseContent.java index 5c51f9553..c0ae611b1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientGrantResponseContent.java @@ -379,5 +379,15 @@ public ClientGrantResponseContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientJwtConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientJwtConfiguration.java index 8659fa47a..1ffbf0b1d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientJwtConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientJwtConfiguration.java @@ -177,5 +177,15 @@ public Builder alg(SigningAlgorithmEnum alg) { public ClientJwtConfiguration build() { return new ClientJwtConfiguration(lifetimeInSeconds, secretEncoded, scopes, alg, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMobile.java b/src/main/java/com/auth0/client/mgmt/types/ClientMobile.java index a62211571..8602cd6e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMobile.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMobile.java @@ -116,5 +116,15 @@ public Builder ios(ClientMobileiOs ios) { public ClientMobile build() { return new ClientMobile(android, ios, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMobileAndroid.java b/src/main/java/com/auth0/client/mgmt/types/ClientMobileAndroid.java index 94c21d350..5802f5b46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMobileAndroid.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMobileAndroid.java @@ -130,5 +130,15 @@ public Builder sha256CertFingerprints(List sha256CertFingerprints) { public ClientMobileAndroid build() { return new ClientMobileAndroid(appPackageName, sha256CertFingerprints, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientMobileiOs.java b/src/main/java/com/auth0/client/mgmt/types/ClientMobileiOs.java index f8de2b1f8..877de03f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientMobileiOs.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientMobileiOs.java @@ -126,5 +126,15 @@ public Builder appBundleIdentifier(String appBundleIdentifier) { public ClientMobileiOs build() { return new ClientMobileiOs(teamId, appBundleIdentifier, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutInitiators.java b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutInitiators.java index 1b2dcd6dc..fca322c41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutInitiators.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutInitiators.java @@ -119,5 +119,15 @@ public Builder selectedInitiators(List additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSessionMetadata.java b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSessionMetadata.java index 4e15d3014..de68d9b7e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSessionMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSessionMetadata.java @@ -99,5 +99,15 @@ public Builder include(Boolean include) { public ClientOidcBackchannelLogoutSessionMetadata build() { return new ClientOidcBackchannelLogoutSessionMetadata(include, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSettings.java b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSettings.java index 634e3fdf9..06e91e644 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSettings.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientOidcBackchannelLogoutSettings.java @@ -195,5 +195,15 @@ public ClientOidcBackchannelLogoutSettings build() { backchannelLogoutSessionMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + 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 817423d69..b89d96d75 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenConfiguration.java @@ -176,6 +176,10 @@ public interface ExpirationTypeStage { public interface _FinalStage { ClientRefreshTokenConfiguration build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Period in seconds where the previous refresh token can be exchanged without triggering breach detection

    */ @@ -402,5 +406,17 @@ public ClientRefreshTokenConfiguration build() { policies, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java index 990636950..27f41220a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientRefreshTokenPolicy.java @@ -91,6 +91,10 @@ public interface AudienceStage { public interface _FinalStage { ClientRefreshTokenPolicy build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The resource server permissions granted under the Multi Resource Refresh Token Policy, defining the context in which an access token can be used

    */ @@ -170,5 +174,17 @@ public _FinalStage scope(List scope) { public ClientRefreshTokenPolicy build() { return new ClientRefreshTokenPolicy(audience, scope, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java index bde9fc310..5d09f7877 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSessionTransferConfiguration.java @@ -261,5 +261,15 @@ public ClientSessionTransferConfiguration build() { enforceOnlineRefreshTokens, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithCredentialId.java b/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithCredentialId.java index 4a7ed6e2b..c641d7083 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithCredentialId.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithCredentialId.java @@ -124,5 +124,15 @@ public Builder credentials(List credentials) { public ClientSignedRequestObjectWithCredentialId build() { return new ClientSignedRequestObjectWithCredentialId(required, credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithPublicKey.java b/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithPublicKey.java index d95362a49..9ed529a93 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithPublicKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSignedRequestObjectWithPublicKey.java @@ -124,5 +124,15 @@ public Builder credentials(List credentials) { public ClientSignedRequestObjectWithPublicKey build() { return new ClientSignedRequestObjectWithPublicKey(required, credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientSigningKey.java b/src/main/java/com/auth0/client/mgmt/types/ClientSigningKey.java index 7b78cfcfc..a023736eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientSigningKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientSigningKey.java @@ -157,5 +157,15 @@ public Builder subject(String subject) { public ClientSigningKey build() { return new ClientSigningKey(pkcs7, cert, subject, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfiguration.java index 81d6cb9bb..40f28ee08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfiguration.java @@ -100,5 +100,15 @@ public Builder allowAnyProfileOfType(List allowAnyP public ClientTokenExchangeConfiguration build() { return new ClientTokenExchangeConfiguration(allowAnyProfileOfType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfigurationOrNull.java b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfigurationOrNull.java index 092762e4d..19bf98bca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfigurationOrNull.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientTokenExchangeConfigurationOrNull.java @@ -101,5 +101,15 @@ public Builder allowAnyProfileOfType(List allowAnyP public ClientTokenExchangeConfigurationOrNull build() { return new ClientTokenExchangeConfigurationOrNull(allowAnyProfileOfType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java b/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java index 621f2fb49..3a22c8b08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectedAccount.java @@ -211,6 +211,10 @@ public interface CreatedAtStage { public interface _FinalStage { ConnectedAccount build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The scopes granted for this connected account.

    */ @@ -389,5 +393,17 @@ public ConnectedAccount build() { expiresAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java index c3273681f..d7ed08f59 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java @@ -122,5 +122,15 @@ public Builder defaultMethod(DefaultMethodEmailIdentifierEnum defaultMethod) { public ConnectionAttributeIdentifier build() { return new ConnectionAttributeIdentifier(active, defaultMethod, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOidc.java index 9b0c0d7d4..ab2a42da2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOidc.java @@ -141,5 +141,15 @@ public Builder userinfoScope(String userinfoScope) { public ConnectionAttributeMapOidc build() { return new ConnectionAttributeMapOidc(attributes, mappingMode, userinfoScope, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOkta.java index 20f165084..9c2956d32 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeMapOkta.java @@ -141,5 +141,15 @@ public Builder userinfoScope(String userinfoScope) { public ConnectionAttributeMapOkta build() { return new ConnectionAttributeMapOkta(attributes, mappingMode, userinfoScope, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributes.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributes.java index 7d4ac34b4..5a298b1ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributes.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributes.java @@ -139,5 +139,15 @@ public Builder username(UsernameAttribute username) { public ConnectionAttributes build() { return new ConnectionAttributes(email, phoneNumber, username, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java index 74b0dbb1f..1383713f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationMethods.java @@ -165,5 +165,15 @@ public Builder phoneOtp(ConnectionPhoneOtpAuthenticationMethod phoneOtp) { public ConnectionAuthenticationMethods build() { return new ConnectionAuthenticationMethods(password, passkey, emailOtp, phoneOtp, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationPurpose.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationPurpose.java index 780caa1f2..c529c36de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationPurpose.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionAuthenticationPurpose.java @@ -69,6 +69,10 @@ public interface ActiveStage { public interface _FinalStage { ConnectionAuthenticationPurpose build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -97,5 +101,17 @@ public _FinalStage active(boolean active) { public ConnectionAuthenticationPurpose build() { return new ConnectionAuthenticationPurpose(active, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java index c745a892f..1a5ec36dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCommon.java @@ -172,5 +172,15 @@ public ConnectionCommon build() { return new ConnectionCommon( displayName, enabledClients, isDomainConnection, metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurpose.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurpose.java index 40dc2a411..f190ba53e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurpose.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurpose.java @@ -82,6 +82,10 @@ public interface ActiveStage { public interface _FinalStage { ConnectionConnectedAccountsPurpose build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage crossAppAccess(Optional crossAppAccess); _FinalStage crossAppAccess(Boolean crossAppAccess); @@ -129,5 +133,17 @@ public _FinalStage crossAppAccess(Optional crossAppAccess) { public ConnectionConnectedAccountsPurpose build() { return new ConnectionConnectedAccountsPurpose(active, crossAppAccess, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurposeXaa.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurposeXaa.java index 50fb17cf6..4227dc2c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurposeXaa.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectedAccountsPurposeXaa.java @@ -82,6 +82,10 @@ public interface ActiveStage { public interface _FinalStage { ConnectionConnectedAccountsPurposeXaa build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage crossAppAccess(Optional crossAppAccess); _FinalStage crossAppAccess(Boolean crossAppAccess); @@ -129,5 +133,17 @@ public _FinalStage crossAppAccess(Optional crossAppAccess) { public ConnectionConnectedAccountsPurposeXaa build() { return new ConnectionConnectedAccountsPurposeXaa(crossAppAccess, active, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectionSettings.java index 65743c84c..4a8f2ef56 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectionSettings.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionConnectionSettings.java @@ -92,5 +92,15 @@ public Builder pkce(ConnectionConnectionSettingsPkceEnum pkce) { public ConnectionConnectionSettings build() { return new ConnectionConnectionSettings(pkce, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionCustomScripts.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionCustomScripts.java index db2a3e6c5..c7713614e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionCustomScripts.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionCustomScripts.java @@ -304,5 +304,15 @@ public ConnectionCustomScripts build() { changePhoneNumber, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionDecryptionKeySamlCert.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionDecryptionKeySamlCert.java index ca1faddf7..a12820a02 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionDecryptionKeySamlCert.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionDecryptionKeySamlCert.java @@ -126,5 +126,15 @@ public Builder key(String key) { public ConnectionDecryptionKeySamlCert build() { return new ConnectionDecryptionKeySamlCert(cert, key, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java index be0ddbebc..3495a19fe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailEmail.java @@ -171,5 +171,15 @@ public Builder syntax(ConnectionEmailEmailSyntax syntax) { public ConnectionEmailEmail build() { return new ConnectionEmailEmail(body, from, subject, syntax, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java index 2ff774eec..0df3024c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEmailOtpAuthenticationMethod.java @@ -99,5 +99,15 @@ public Builder enabled(Boolean enabled) { public ConnectionEmailOtpAuthenticationMethod build() { return new ConnectionEmailOtpAuthenticationMethod(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java index a2c363c11..9cbf21b74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionEnabledClient.java @@ -76,6 +76,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionEnabledClient build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage clientId(@NotNull String clientId) { public ConnectionEnabledClient build() { return new ConnectionEnabledClient(clientId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java index b7d58d326..86129d54a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionFederatedConnectionsAccessTokens.java @@ -99,5 +99,15 @@ public Builder active(Boolean active) { public ConnectionFederatedConnectionsAccessTokens build() { return new ConnectionFederatedConnectionsAccessTokens(active, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java index bd9961eae..b192408e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionForList.java @@ -400,5 +400,15 @@ public ConnectionForList build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java index 918f3e7ab..74b134107 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionForOrganization.java @@ -120,6 +120,10 @@ public interface ConnectionIdStage { public interface _FinalStage { ConnectionForOrganization build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.

    */ @@ -243,5 +247,17 @@ public ConnectionForOrganization build() { return new ConnectionForOrganization( connectionId, assignMembershipOnLogin, showAsButton, isSignupEnabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java index cdde507d1..801f97994 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthentication.java @@ -147,6 +147,10 @@ public interface SecretStage { public interface _FinalStage { ConnectionGatewayAuthentication build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The subject to be added to the JWT payload.

    */ @@ -270,5 +274,17 @@ public ConnectionGatewayAuthentication build() { return new ConnectionGatewayAuthentication( method, subject, audience, secret, secretBase64Encoded, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java index 8948dfba8..58ba3dbe8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionGatewayAuthenticationSms.java @@ -133,6 +133,10 @@ public interface SecretStage { public interface _FinalStage { ConnectionGatewayAuthenticationSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Set to true if the secret is base64-url-encoded

    */ @@ -236,5 +240,17 @@ public ConnectionGatewayAuthenticationSms build() { return new ConnectionGatewayAuthenticationSms( audience, method, secret, secretBase64Encoded, subject, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java index 5a806f424..7752e1ce2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionKey.java @@ -251,6 +251,10 @@ public interface ThumbprintStage { public interface _FinalStage { ConnectionKey build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The public certificate of the signing key in pkcs7 format

    */ @@ -561,5 +565,17 @@ public ConnectionKey build() { subjectDn, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionMfa.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionMfa.java index 5b3239148..a491ddfb4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionMfa.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionMfa.java @@ -128,5 +128,15 @@ public Builder returnEnrollSettings(Boolean returnEnrollSettings) { public ConnectionMfa build() { return new ConnectionMfa(active, returnEnrollSettings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAd.java index 5cbb7e82e..90f01822a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAd.java @@ -608,5 +608,15 @@ public ConnectionOptionsAd build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java index f5a6c212d..f9688f05b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAdfs.java @@ -501,5 +501,15 @@ public ConnectionOptionsAdfs build() { userIdAttribute, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAmazon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAmazon.java index b1f28e716..d41c6df5c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAmazon.java @@ -362,5 +362,15 @@ public ConnectionOptionsAmazon build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java index ade31883a..851b2b6d5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAol.java @@ -277,5 +277,15 @@ public ConnectionOptionsAol build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsApple.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsApple.java index 71f6dd6fe..54cc7a053 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsApple.java @@ -570,5 +570,15 @@ public ConnectionOptionsApple build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java index b78eb6e8e..19b15f415 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0.java @@ -901,5 +901,15 @@ public ConnectionOptionsAuth0 build() { validation, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0Oidc.java index 2b356a55f..0e7f8fb66 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAuth0Oidc.java @@ -114,5 +114,15 @@ public Builder clientSecret(String clientSecret) { public ConnectionOptionsAuth0Oidc build() { return new ConnectionOptionsAuth0Oidc(clientId, clientSecret, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java index eaee6daa2..5c1c553ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsAzureAd.java @@ -2182,5 +2182,15 @@ public ConnectionOptionsAzureAd build() { waadProtocol, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBaidu.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBaidu.java index 8718f8934..0885a4659 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBaidu.java @@ -277,5 +277,15 @@ public ConnectionOptionsBaidu build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitbucket.java index 916730ebb..20eaf1250 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitbucket.java @@ -254,5 +254,15 @@ public ConnectionOptionsBitbucket build() { setUserRootAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitly.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitly.java index 38e53048e..55ea9a80c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBitly.java @@ -277,5 +277,15 @@ public ConnectionOptionsBitly build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBox.java index 1af07dd26..68e12d02b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsBox.java @@ -277,5 +277,15 @@ public ConnectionOptionsBox build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommon.java index f021d5065..51b4de4c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommon.java @@ -94,5 +94,15 @@ public Builder nonPersistentAttrs(List nonPersistentAttrs) { public ConnectionOptionsCommon build() { return new ConnectionOptionsCommon(nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java index a40c7a91f..46a055635 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonOidc.java @@ -373,6 +373,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionOptionsCommonOidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); _FinalStage authorizationEndpoint(String authorizationEndpoint); @@ -1008,5 +1012,17 @@ public ConnectionOptionsCommonOidc build() { userinfoEndpoint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java index b25819e86..850b831ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsCommonSaml.java @@ -520,5 +520,15 @@ public ConnectionOptionsCommonSaml build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDaccount.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDaccount.java index 6e6ace975..f776dd0f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDaccount.java @@ -277,5 +277,15 @@ public ConnectionOptionsDaccount build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDropbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDropbox.java index d9ef5edc2..ec3595806 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDropbox.java @@ -277,5 +277,15 @@ public ConnectionOptionsDropbox build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDwolla.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDwolla.java index ee49cbde2..6bfb889e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsDwolla.java @@ -277,5 +277,15 @@ public ConnectionOptionsDwolla build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java index eb400e446..7082b035e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEmail.java @@ -158,6 +158,10 @@ public interface NameStage { public interface _FinalStage { ConnectionOptionsEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); _FinalStage nonPersistentAttrs(List nonPersistentAttrs); @@ -298,5 +302,17 @@ public ConnectionOptionsEmail build() { totp, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEvernote.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEvernote.java index 2d2992be6..4fcd77b2a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsEvernote.java @@ -262,5 +262,15 @@ public ConnectionOptionsEvernote build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsExact.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsExact.java index d9a8b6bee..3a4d01440 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsExact.java @@ -304,5 +304,15 @@ public ConnectionOptionsExact build() { upstreamParams, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFacebook.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFacebook.java index cd581604a..2367992bd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFacebook.java @@ -1566,5 +1566,15 @@ public ConnectionOptionsFacebook build() { userVideos, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFitbit.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFitbit.java index aba4fc169..ca55e212a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFitbit.java @@ -277,5 +277,15 @@ public ConnectionOptionsFitbit build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java index b30caa662..3e35fdfda 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsFlickr.java @@ -262,5 +262,15 @@ public ConnectionOptionsFlickr build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGitHub.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGitHub.java index 53a18344e..f27aa9035 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGitHub.java @@ -938,5 +938,15 @@ public ConnectionOptionsGitHub build() { writeRepoHook, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java index eada7fef5..a2646f050 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleApps.java @@ -383,6 +383,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionOptionsGoogleApps build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); _FinalStage nonPersistentAttrs(List nonPersistentAttrs); @@ -1048,5 +1052,17 @@ public ConnectionOptionsGoogleApps build() { upstreamParams, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleOAuth2.java index ed9c68116..c7a3f016f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsGoogleOAuth2.java @@ -2430,5 +2430,15 @@ public ConnectionOptionsGoogleOAuth2 build() { youtubepartner, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsIdpinitiatedSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsIdpinitiatedSaml.java index a3515ba5d..8915576e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsIdpinitiatedSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsIdpinitiatedSaml.java @@ -184,5 +184,15 @@ public ConnectionOptionsIdpinitiatedSaml build() { return new ConnectionOptionsIdpinitiatedSaml( clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsInstagram.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsInstagram.java index 8d04b9c8f..c37aee9bf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsInstagram.java @@ -277,5 +277,15 @@ public ConnectionOptionsInstagram build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLine.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLine.java index d5d5dfba3..be0cd8fb1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLine.java @@ -362,5 +362,15 @@ public ConnectionOptionsLine build() { profile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java index 5eada7d3e..ea623a0e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsLinkedin.java @@ -399,5 +399,15 @@ public ConnectionOptionsLinkedin build() { profile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java index 4dd9ec882..2b3f7a88c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsMiicard.java @@ -277,5 +277,15 @@ public ConnectionOptionsMiicard build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1.java index 210e44208..b4989c713 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1.java @@ -350,5 +350,15 @@ public ConnectionOptionsOAuth1 build() { userAuthorizationUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1Common.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1Common.java index 22da68341..4fcfe753e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1Common.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth1Common.java @@ -262,5 +262,15 @@ public ConnectionOptionsOAuth1Common build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2.java index 11a71bece..0c087a521 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2.java @@ -570,5 +570,15 @@ public ConnectionOptionsOAuth2 build() { useOauthSpecScope, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2Common.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2Common.java index 541d9f7a0..f92f74c13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2Common.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOAuth2Common.java @@ -277,5 +277,15 @@ public ConnectionOptionsOAuth2Common build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOffice365.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOffice365.java index b6d9bf4e6..9c1a23b98 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOffice365.java @@ -114,5 +114,15 @@ public Builder clientSecret(String clientSecret) { public ConnectionOptionsOffice365 build() { return new ConnectionOptionsOffice365(clientId, clientSecret, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java index 623a58d99..457cc8d09 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidc.java @@ -418,6 +418,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionOptionsOidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); _FinalStage authorizationEndpoint(String authorizationEndpoint); @@ -1137,5 +1141,17 @@ public ConnectionOptionsOidc build() { type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java index 44d8d35fa..58ddf0c86 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOidcMetadata.java @@ -495,6 +495,10 @@ public interface JwksUriStage { public interface _FinalStage { ConnectionOptionsOidcMetadata build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage acrValuesSupported(Optional> acrValuesSupported); _FinalStage acrValuesSupported(List acrValuesSupported); @@ -1318,5 +1322,17 @@ public ConnectionOptionsOidcMetadata build() { userinfoSigningAlgValuesSupported, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java index 6b0f7a96b..376926cac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsOkta.java @@ -418,6 +418,10 @@ public interface ClientIdStage { public interface _FinalStage { ConnectionOptionsOkta build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); _FinalStage nonPersistentAttrs(List nonPersistentAttrs); @@ -1137,5 +1141,17 @@ public ConnectionOptionsOkta build() { type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPaypal.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPaypal.java index 44937f7ad..dcaab5013 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPaypal.java @@ -356,5 +356,15 @@ public ConnectionOptionsPaypal build() { profile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java index e93fffb1b..d23ca3876 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPingFederate.java @@ -295,6 +295,10 @@ public interface PingFederateBaseUrlStage { public interface _FinalStage { ConnectionOptionsPingFederate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage cert(Optional cert); _FinalStage cert(String cert); @@ -725,5 +729,17 @@ public ConnectionOptionsPingFederate build() { signingCert, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPlanningCenter.java index c2b0d70f1..afd3cc707 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsPlanningCenter.java @@ -277,5 +277,15 @@ public ConnectionOptionsPlanningCenter build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java index 4f6d6a68a..aec9b8ff9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsRenren.java @@ -277,5 +277,15 @@ public ConnectionOptionsRenren build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforce.java index 5d925c0de..3a5913577 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforce.java @@ -337,5 +337,15 @@ public ConnectionOptionsSalesforce build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforceCommunity.java index eb176e917..8ad125508 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSalesforceCommunity.java @@ -365,5 +365,15 @@ public ConnectionOptionsSalesforceCommunity build() { communityBaseUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java index 5450fc46f..25de71989 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSaml.java @@ -943,5 +943,15 @@ public ConnectionOptionsSaml build() { userIdAttribute, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSharepoint.java index 5ed1f11d7..fa55b3a0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSharepoint.java @@ -277,5 +277,15 @@ public ConnectionOptionsSharepoint build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShop.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShop.java index 65ed38125..2f118a69d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShop.java @@ -277,5 +277,15 @@ public ConnectionOptionsShop build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShopify.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShopify.java index 94692b0c9..318b5063a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsShopify.java @@ -277,5 +277,15 @@ public ConnectionOptionsShopify build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java index baaf180d3..da8474eec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSms.java @@ -509,5 +509,15 @@ public ConnectionOptionsSms build() { twilioToken, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSoundcloud.java index bb529d7d6..06d421f5d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsSoundcloud.java @@ -277,5 +277,15 @@ public ConnectionOptionsSoundcloud build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsThirtySevenSignals.java index 2dff3c33c..c13a1685b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsThirtySevenSignals.java @@ -279,5 +279,15 @@ public ConnectionOptionsThirtySevenSignals build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsTwitter.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsTwitter.java index ae1903e20..966c5b0cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsTwitter.java @@ -452,5 +452,15 @@ public ConnectionOptionsTwitter build() { usersRead, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsUntappd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsUntappd.java index 734ce3bb3..f3fd498d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsUntappd.java @@ -277,5 +277,15 @@ public ConnectionOptionsUntappd build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsVkontakte.java index bb488e449..4bc05ec1a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsVkontakte.java @@ -277,5 +277,15 @@ public ConnectionOptionsVkontakte build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWeibo.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWeibo.java index 986606658..1d841f4d5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWeibo.java @@ -277,5 +277,15 @@ public ConnectionOptionsWeibo build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWindowsLive.java index c469f9517..752d881b1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWindowsLive.java @@ -2180,5 +2180,15 @@ public ConnectionOptionsWindowsLive build() { workProfile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWordpress.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWordpress.java index fe267e8a4..61a31db3d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsWordpress.java @@ -277,5 +277,15 @@ public ConnectionOptionsWordpress build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYahoo.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYahoo.java index 2379ac84c..28febcd88 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYahoo.java @@ -277,5 +277,15 @@ public ConnectionOptionsYahoo build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java index 370a37372..85fc45bfa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYammer.java @@ -277,5 +277,15 @@ public ConnectionOptionsYammer build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYandex.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYandex.java index adb5f64b0..9e3062299 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionOptionsYandex.java @@ -277,5 +277,15 @@ public ConnectionOptionsYandex build() { nonPersistentAttrs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyAuthenticationMethod.java index 21fd81bb8..e9acf1f6b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyAuthenticationMethod.java @@ -98,5 +98,15 @@ public Builder enabled(Boolean enabled) { public ConnectionPasskeyAuthenticationMethod build() { return new ConnectionPasskeyAuthenticationMethod(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyOptions.java index 11308fbe0..880c2c2b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasskeyOptions.java @@ -154,5 +154,15 @@ public ConnectionPasskeyOptions build() { return new ConnectionPasskeyOptions( challengeUi, progressiveEnrollmentEnabled, localEnrollmentEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordAuthenticationMethod.java index 67a8c5fdc..cfe728949 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordAuthenticationMethod.java @@ -149,5 +149,15 @@ public ConnectionPasswordAuthenticationMethod build() { return new ConnectionPasswordAuthenticationMethod( enabled, apiBehavior, signupBehavior, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordComplexityOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordComplexityOptions.java index f2734810c..f6f0a5805 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordComplexityOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordComplexityOptions.java @@ -98,5 +98,15 @@ public Builder minLength(Integer minLength) { public ConnectionPasswordComplexityOptions build() { return new ConnectionPasswordComplexityOptions(minLength, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordDictionaryOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordDictionaryOptions.java index 1abe74805..8d6d2ae13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordDictionaryOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordDictionaryOptions.java @@ -86,6 +86,10 @@ public interface EnableStage { public interface _FinalStage { ConnectionPasswordDictionaryOptions build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Custom Password Dictionary. An array of up to 200 entries.

    */ @@ -143,5 +147,17 @@ public _FinalStage dictionary(Optional> dictionary) { public ConnectionPasswordDictionaryOptions build() { return new ConnectionPasswordDictionaryOptions(enable, dictionary, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordHistoryOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordHistoryOptions.java index a5ea8bb03..9d5e2582a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordHistoryOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordHistoryOptions.java @@ -81,6 +81,10 @@ public interface EnableStage { public interface _FinalStage { ConnectionPasswordHistoryOptions build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage size(Optional size); _FinalStage size(Integer size); @@ -128,5 +132,17 @@ public _FinalStage size(Optional size) { public ConnectionPasswordHistoryOptions build() { return new ConnectionPasswordHistoryOptions(enable, size, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordNoPersonalInfoOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordNoPersonalInfoOptions.java index ea52d475b..64687debe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordNoPersonalInfoOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPasswordNoPersonalInfoOptions.java @@ -70,6 +70,10 @@ public interface EnableStage { public interface _FinalStage { ConnectionPasswordNoPersonalInfoOptions build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage enable(boolean enable) { public ConnectionPasswordNoPersonalInfoOptions build() { return new ConnectionPasswordNoPersonalInfoOptions(enable, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java index 34048fa9d..aaeb4f788 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPhoneOtpAuthenticationMethod.java @@ -99,5 +99,15 @@ public Builder enabled(Boolean enabled) { public ConnectionPhoneOtpAuthenticationMethod build() { return new ConnectionPhoneOtpAuthenticationMethod(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java index 0185bb7ac..21291daf8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfile.java @@ -253,5 +253,15 @@ public ConnectionProfile build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileConfig.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileConfig.java index 68d2ff0e7..a69752d89 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileConfig.java @@ -55,5 +55,15 @@ public Builder from(ConnectionProfileConfig other) { public ConnectionProfileConfig build() { return new ConnectionProfileConfig(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileOrganization.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileOrganization.java index 1a3018acb..91bd89703 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileOrganization.java @@ -119,5 +119,15 @@ public Builder assignMembershipOnLogin( public ConnectionProfileOrganization build() { return new ConnectionProfileOrganization(showAsButton, assignMembershipOnLogin, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java index 0cc11dd51..0298a55e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverride.java @@ -117,5 +117,15 @@ public Builder connectionConfig(ConnectionProfileStrategyOverridesConnectionConf public ConnectionProfileStrategyOverride build() { return new ConnectionProfileStrategyOverride(enabledFeatures, connectionConfig, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverrides.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverrides.java index 8dea364b1..39199ccf2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverrides.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverrides.java @@ -264,5 +264,15 @@ public ConnectionProfileStrategyOverrides build() { return new ConnectionProfileStrategyOverrides( pingfederate, ad, adfs, waad, googleApps, okta, oidc, samlp, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesConnectionConfig.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesConnectionConfig.java index 9bd05af6c..228e18721 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesConnectionConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileStrategyOverridesConnectionConfig.java @@ -55,5 +55,15 @@ public Builder from(ConnectionProfileStrategyOverridesConnectionConfig other) { public ConnectionProfileStrategyOverridesConnectionConfig build() { return new ConnectionProfileStrategyOverridesConnectionConfig(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java index 473f874b4..2dfd766cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplate.java @@ -227,5 +227,15 @@ public ConnectionProfileTemplate build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplateItem.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplateItem.java index 26b89761c..70ec9721c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplateItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionProfileTemplateItem.java @@ -151,5 +151,15 @@ public Builder template(ConnectionProfileTemplate template) { public ConnectionProfileTemplateItem build() { return new ConnectionProfileTemplateItem(id, displayName, template, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java index e0951ed4a..80b1a4f7e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java @@ -1196,5 +1196,15 @@ public ConnectionPropertiesOptions build() { federatedConnectionsAccessTokens, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPurposes.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPurposes.java index 671e6777d..16a879630 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPurposes.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPurposes.java @@ -118,5 +118,15 @@ public Builder connectedAccounts(ConnectionConnectedAccountsPurpose connectedAcc public ConnectionPurposes build() { return new ConnectionPurposes(authentication, connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java index 9cd04eecc..83a7e7e3c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseCommon.java @@ -255,5 +255,15 @@ public ConnectionResponseCommon build() { return new ConnectionResponseCommon( id, realms, name, displayName, enabledClients, isDomainConnection, metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java index 9a9e1c71c..7d6f6a6ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAd.java @@ -209,6 +209,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -469,5 +473,17 @@ public ConnectionResponseContentAd build() { provisioningTicketUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java index 06b59a184..9634ef631 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAdfs.java @@ -220,6 +220,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAdfs build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -501,5 +505,17 @@ public ConnectionResponseContentAdfs build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java index 3a215ad33..e06d54bcd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAmazon.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAmazon build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentAmazon build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java index 7575922f8..bbabaeb16 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAol.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAol build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentAol build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java index 2d61b6c89..17ae53d00 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentApple.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentApple build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentApple build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java index 98a73dc2a..e15baab64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAuth0 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentAuth0 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java index 3dcb96997..543e11981 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAuth0Oidc.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAuth0Oidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentAuth0Oidc build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java index f7e9325d0..bada7372f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentAzureAd.java @@ -220,6 +220,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentAzureAd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -501,5 +505,17 @@ public ConnectionResponseContentAzureAd build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java index 85a912478..902685a97 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBaidu.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentBaidu build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentBaidu build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java index 962bded66..31db1395e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitbucket.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentBitbucket build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentBitbucket build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java index a23068c2c..ec367c965 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBitly.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentBitly build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentBitly build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java index 3e9bd1ad3..696c78ec6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentBox.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentBox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentBox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java index 03edbe793..a8fd19ea1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentCustom.java @@ -209,6 +209,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentCustom build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -469,5 +473,17 @@ public ConnectionResponseContentCustom build() { provisioningTicketUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java index c07c1b26f..6c72cb1a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDaccount.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentDaccount build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentDaccount build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java index 814b959dd..2b4e9e89d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDropbox.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentDropbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentDropbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java index 61378ce7f..b5150028a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentDwolla.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentDwolla build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentDwolla build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java index 2e1571017..d46250bf1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEmail.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentEmail build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java index a2911edcd..1d2597c46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernote.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentEvernote build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentEvernote build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java index 8f471983e..58b305b73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentEvernoteSandbox.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentEvernoteSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentEvernoteSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java index 1ddfcb109..881f2e207 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentExact.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentExact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentExact build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java index ad37e856d..da0140cf2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFacebook.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentFacebook build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentFacebook build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java index b4a5f4570..38057259d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFitbit.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentFitbit build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentFitbit build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java index 96a248100..5de190ef7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentFlickr.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentFlickr build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentFlickr build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java index 1d371be0c..9599f613c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGitHub.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentGitHub build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentGitHub build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java index 990b7816a..51de45c8b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleApps.java @@ -221,6 +221,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentGoogleApps build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -502,5 +506,17 @@ public ConnectionResponseContentGoogleApps build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java index b3295dc8d..20fb9da88 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentGoogleOAuth2.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentGoogleOAuth2 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentGoogleOAuth2 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java index 085393621..bfe58d819 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentInstagram.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentInstagram build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentInstagram build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java index 07e7d4c9e..094eb2ce7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentIp.java @@ -209,6 +209,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentIp build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -469,5 +473,17 @@ public ConnectionResponseContentIp build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java index e851f1c2c..221ccf761 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLine.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentLine build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentLine build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java index 2b760c285..c19472854 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentLinkedin.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentLinkedin build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentLinkedin build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java index 77630d7f7..7ae332fad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentMiicard.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentMiicard build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentMiicard build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java index 81ea328f5..c399f197c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth1.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOAuth1 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentOAuth1 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java index 40d3ef24d..51383dbfd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOAuth2.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOAuth2 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentOAuth2 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java index c298b75b2..ce6758da0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOffice365.java @@ -221,6 +221,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOffice365 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -502,5 +506,17 @@ public ConnectionResponseContentOffice365 build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java index 213b36705..9ada6d240 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOidc.java @@ -207,6 +207,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -467,5 +471,17 @@ public ConnectionResponseContentOidc build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java index f3dbb50df..20e9c6737 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentOkta.java @@ -209,6 +209,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentOkta build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -469,5 +473,17 @@ public ConnectionResponseContentOkta build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java index dca2392d3..9732581fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypal.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentPaypal build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentPaypal build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java index 32efe8dd3..f44f68a85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPaypalSandbox.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentPaypalSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentPaypalSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java index e91c635e2..bd807f1e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPingFederate.java @@ -221,6 +221,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentPingFederate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -502,5 +506,17 @@ public ConnectionResponseContentPingFederate build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java index 918391278..1902c73fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentPlanningCenter.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentPlanningCenter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentPlanningCenter build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java index 3702feba8..069748d7f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentRenren.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentRenren build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentRenren build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java index 7bfd74097..b2bacb11a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforce.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSalesforce build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentSalesforce build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java index 4f6022039..5f35c1979 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceCommunity.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSalesforceCommunity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentSalesforceCommunity build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java index 852ced464..53b1813cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSalesforceSandbox.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSalesforceSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentSalesforceSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java index 74adce3b4..c0fc9de24 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSaml.java @@ -220,6 +220,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSaml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -501,5 +505,17 @@ public ConnectionResponseContentSaml build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java index c78d68092..aaea4d956 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSharepoint.java @@ -210,6 +210,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSharepoint build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -470,5 +474,17 @@ public ConnectionResponseContentSharepoint build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java index 7106337f5..4074e2fd2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShop.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentShop build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentShop build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java index f96c0ef12..0c86093f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentShopify.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentShopify build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentShopify build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java index 28a062520..f8f4532da 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSms.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentSms build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java index 3bfb9338f..e979aced3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentSoundcloud.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentSoundcloud build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentSoundcloud build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java index 4b603dba0..cc8f7aa16 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentThirtySevenSignals.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentThirtySevenSignals build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentThirtySevenSignals build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java index c7251e84d..d5b0dfcc4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentTwitter.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentTwitter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentTwitter build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java index 3bc77460b..23d173133 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentUntappd.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentUntappd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentUntappd build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java index c7cdc2b95..ed49082c0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentVkontakte.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentVkontakte build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentVkontakte build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java index 0d3dbbee4..bdc4abf18 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWeibo.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentWeibo build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentWeibo build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java index 88b41a5b9..0b6a88b2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWindowsLive.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentWindowsLive build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentWindowsLive build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java index f051f3f15..75737c392 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentWordpress.java @@ -199,6 +199,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentWordpress build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -438,5 +442,17 @@ public ConnectionResponseContentWordpress build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java index 0cdc4af23..6c1d2b7f9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYahoo.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentYahoo build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentYahoo build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java index e2e8fdccf..b6e356c0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYammer.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentYammer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentYammer build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java index e78cc9143..a46f44e5d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionResponseContentYandex.java @@ -198,6 +198,10 @@ public interface StrategyStage { public interface _FinalStage { ConnectionResponseContentYandex build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -437,5 +441,17 @@ public ConnectionResponseContentYandex build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth1.java index 2ed5fc307..552c85a2b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth1.java @@ -97,5 +97,15 @@ public Builder fetchUserProfile(String fetchUserProfile) { public ConnectionScriptsOAuth1 build() { return new ConnectionScriptsOAuth1(fetchUserProfile, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth2.java index 417044e5d..fd54bbbeb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionScriptsOAuth2.java @@ -128,5 +128,15 @@ public Builder getLogoutUrl(String getLogoutUrl) { public ConnectionScriptsOAuth2 build() { return new ConnectionScriptsOAuth2(fetchUserProfile, getLogoutUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionSigningKeySaml.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionSigningKeySaml.java index e7a208f70..8000ef2c4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionSigningKeySaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionSigningKeySaml.java @@ -126,5 +126,15 @@ public Builder key(String key) { public ConnectionSigningKeySaml build() { return new ConnectionSigningKeySaml(cert, key, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java index 5e6f892c7..fc5e90055 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpEmail.java @@ -114,5 +114,15 @@ public Builder timeStep(Integer timeStep) { public ConnectionTotpEmail build() { return new ConnectionTotpEmail(length, timeStep, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java index f036250df..70d32ae0f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionTotpSms.java @@ -114,5 +114,15 @@ public Builder timeStep(Integer timeStep) { public ConnectionTotpSms build() { return new ConnectionTotpSms(length, timeStep, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamAlias.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamAlias.java index 44bda0cb8..59797be77 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamAlias.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamAlias.java @@ -92,5 +92,15 @@ public Builder alias(ConnectionUpstreamAliasEnum alias) { public ConnectionUpstreamAlias build() { return new ConnectionUpstreamAlias(alias, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamValue.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamValue.java index 61954ddb6..dc8d6dd6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamValue.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionUpstreamValue.java @@ -91,5 +91,15 @@ public Builder value(String value) { public ConnectionUpstreamValue build() { return new ConnectionUpstreamValue(value, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionUsernameValidationOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionUsernameValidationOptions.java index 07586413b..1598f80ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionUsernameValidationOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionUsernameValidationOptions.java @@ -82,6 +82,10 @@ public interface MaxStage { public interface _FinalStage { ConnectionUsernameValidationOptions build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage max(int max) { public ConnectionUsernameValidationOptions build() { return new ConnectionUsernameValidationOptions(min, max, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionValidationOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionValidationOptions.java index e95610f27..580a86826 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionValidationOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionValidationOptions.java @@ -125,5 +125,15 @@ public Builder username(com.auth0.client.mgmt.core.Nullable additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleResponseContent.java index 2594ce75d..1a7bdd267 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleResponseContent.java @@ -418,5 +418,15 @@ public CreateActionModuleResponseContent build() { latestVersion, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleVersionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleVersionResponseContent.java index 99fb1fd5d..9b70774b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleVersionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionModuleVersionResponseContent.java @@ -284,5 +284,15 @@ public CreateActionModuleVersionResponseContent build() { return new CreateActionModuleVersionResponseContent( id, moduleId, versionNumber, code, secrets, dependencies, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java index 3a2f144cb..75994ec6a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionRequestContent.java @@ -182,6 +182,10 @@ public interface NameStage { public interface _FinalStage { CreateActionRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The list of triggers that this action supports. At this time, an action can only target a single trigger at a time.

    */ @@ -450,5 +454,17 @@ public CreateActionRequestContent build() { deploy, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateActionResponseContent.java index 288a82079..cd81955f3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateActionResponseContent.java @@ -598,5 +598,15 @@ public CreateActionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingPhoneProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingPhoneProviderResponseContent.java index 8c57882a9..c1681dd81 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingPhoneProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingPhoneProviderResponseContent.java @@ -167,6 +167,10 @@ public interface NameStage { public interface _FinalStage { CreateBrandingPhoneProviderResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -375,5 +379,17 @@ public CreateBrandingPhoneProviderResponseContent build() { return new CreateBrandingPhoneProviderResponseContent( id, tenant, name, channel, disabled, configuration, createdAt, updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java index 10eca3e8f..9f71be384 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateBrandingThemeResponseContent.java @@ -176,6 +176,10 @@ public interface WidgetStage { public interface _FinalStage { CreateBrandingThemeResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -283,5 +287,17 @@ public CreateBrandingThemeResponseContent build() { return new CreateBrandingThemeResponseContent( borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java index a3df1c27b..d9397494f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientAuthenticationMethodSelfSignedTlsClientAuth.java @@ -104,5 +104,15 @@ public Builder addAllCredentials(List credentials) { public CreateClientAuthenticationMethodSelfSignedTlsClientAuth build() { return new CreateClientAuthenticationMethodSelfSignedTlsClientAuth(credentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java index 536a09ebf..cd8b4ef4c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantRequestContent.java @@ -182,6 +182,10 @@ public interface AudienceStage { public interface _FinalStage { CreateClientGrantRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage organizationUsage(Optional organizationUsage); _FinalStage organizationUsage(ClientGrantOrganizationUsageEnum organizationUsage); @@ -398,5 +402,17 @@ public CreateClientGrantRequestContent build() { allowAllScopes, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantResponseContent.java index ff9754892..a507b69cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientGrantResponseContent.java @@ -379,5 +379,15 @@ public CreateClientGrantResponseContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java index 989e3151c..317749917 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientRequestContent.java @@ -292,7 +292,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -358,7 +358,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -404,7 +404,7 @@ public Optional getCrossOriginLoc() { } /** - * @return <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>) + * @return true to disable Single Sign On, false otherwise (default: false) */ @JsonProperty("sso_disabled") public Optional getSsoDisabled() { @@ -412,7 +412,7 @@ public Optional getSsoDisabled() { } /** - * @return <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. Defaults to <code>true</code> + * @return true if the custom login page is to be used, false otherwise. Defaults to true */ @JsonProperty("custom_login_page_on") public Optional getCustomLoginPageOn() { @@ -769,6 +769,10 @@ public interface NameStage { public interface _FinalStage { CreateClientRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Free text description of this client (max length: 140 characters).

    */ @@ -815,7 +819,7 @@ _FinalStage sessionTransfer( _FinalStage allowedOrigins(List allowedOrigins); /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ _FinalStage webOrigins(Optional> webOrigins); @@ -872,7 +876,7 @@ _FinalStage sessionTransfer( _FinalStage isFirstParty(Boolean isFirstParty); /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ _FinalStage oidcConformant(Optional oidcConformant); @@ -912,14 +916,14 @@ _FinalStage sessionTransfer( _FinalStage crossOriginLoc(String crossOriginLoc); /** - *

    <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to disable Single Sign On, false otherwise (default: false)

    */ _FinalStage ssoDisabled(Optional ssoDisabled); _FinalStage ssoDisabled(Boolean ssoDisabled); /** - *

    <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. Defaults to <code>true</code>

    + *

    true if the custom login page is to be used, false otherwise. Defaults to true

    */ _FinalStage customLoginPageOn(Optional customLoginPageOn); @@ -1766,7 +1770,7 @@ public _FinalStage customLoginPage(Optional customLoginPage) { } /** - *

    <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. Defaults to <code>true</code>

    + *

    true if the custom login page is to be used, false otherwise. Defaults to true

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -1776,7 +1780,7 @@ public _FinalStage customLoginPageOn(Boolean customLoginPageOn) { } /** - *

    <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. Defaults to <code>true</code>

    + *

    true if the custom login page is to be used, false otherwise. Defaults to true

    */ @java.lang.Override @JsonSetter(value = "custom_login_page_on", nulls = Nulls.SKIP) @@ -1786,7 +1790,7 @@ public _FinalStage customLoginPageOn(Optional customLoginPageOn) { } /** - *

    <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to disable Single Sign On, false otherwise (default: false)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -1796,7 +1800,7 @@ public _FinalStage ssoDisabled(Boolean ssoDisabled) { } /** - *

    <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to disable Single Sign On, false otherwise (default: false)

    */ @java.lang.Override @JsonSetter(value = "sso_disabled", nulls = Nulls.SKIP) @@ -1914,7 +1918,7 @@ public _FinalStage jwtConfiguration(Optional jwtConfigur } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -1924,7 +1928,7 @@ public _FinalStage oidcConformant(Boolean oidcConformant) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @java.lang.Override @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) @@ -2081,7 +2085,7 @@ public _FinalStage clientAliases(Optional> clientAliases) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -2091,7 +2095,7 @@ public _FinalStage webOrigins(List webOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @java.lang.Override @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) @@ -2298,5 +2302,17 @@ public CreateClientRequestContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java index 043fc6235..5d630af0d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateClientResponseContent.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public CreateClientResponseContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java index 59edb6be9..9ccac95ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionCommon.java @@ -197,5 +197,15 @@ public CreateConnectionCommon build() { return new CreateConnectionCommon( name, displayName, enabledClients, isDomainConnection, metadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java index 186bed14e..28eeefe02 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileRequestContent.java @@ -133,6 +133,10 @@ public interface NameStage { public interface _FinalStage { CreateConnectionProfileRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage organization(Optional organization); _FinalStage organization(ConnectionProfileOrganization organization); @@ -267,5 +271,17 @@ public CreateConnectionProfileRequestContent build() { strategyOverrides, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java index 814a7bba4..c1eb3e2df 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionProfileResponseContent.java @@ -254,5 +254,15 @@ public CreateConnectionProfileResponseContent build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java index 153b6ba81..93f11a0dc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContent.java @@ -109,7 +109,7 @@ public Optional> getEnabledClients() { } /** - * @return <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.) + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) */ @JsonProperty("is_domain_connection") public Optional getIsDomainConnection() { @@ -117,7 +117,7 @@ public Optional getIsDomainConnection() { } /** - * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.) + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) */ @JsonProperty("show_as_button") public Optional getShowAsButton() { @@ -213,6 +213,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Connection name used in the new universal login experience

    */ @@ -232,14 +236,14 @@ public interface _FinalStage { _FinalStage enabledClients(List enabledClients); /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ _FinalStage showAsButton(Optional showAsButton); @@ -389,7 +393,7 @@ public _FinalStage realms(Optional> realms) { } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -399,7 +403,7 @@ public _FinalStage showAsButton(Boolean showAsButton) { } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ @java.lang.Override @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) @@ -409,7 +413,7 @@ public _FinalStage showAsButton(Optional showAsButton) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -419,7 +423,7 @@ public _FinalStage isDomainConnection(Boolean isDomainConnection) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ @java.lang.Override @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) @@ -497,5 +501,17 @@ public CreateConnectionRequestContent build() { connectedAccounts, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java index a39e1f8b3..f639769e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAd.java @@ -149,6 +149,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -304,5 +308,17 @@ public CreateConnectionRequestContentAd build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java index 29a9fad1c..2c2566fc5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAdfs.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAdfs build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentAdfs build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java index 985b365c5..c6d9ddecf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAmazon.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAmazon build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentAmazon build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java index ad89a2c25..fdce69bc5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAol.java @@ -149,6 +149,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAol build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -304,5 +308,17 @@ public CreateConnectionRequestContentAol build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java index 39ddcecb3..c49bac302 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentApple.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentApple build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentApple build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java index d46c7d774..e79789909 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAuth0 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentAuth0 build() { realms, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java index 215a4e013..55fa163b0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAuth0Oidc.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAuth0Oidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentAuth0Oidc build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java index c707c5182..16ed09ebf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentAzureAd.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentAzureAd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentAzureAd build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java index 6b26ee9c2..5c7bdd69b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBaidu.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentBaidu build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentBaidu build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java index 8ab2c41f8..9b433c517 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitbucket.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentBitbucket build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentBitbucket build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java index a8c54a013..22f885d1f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBitly.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentBitly build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentBitly build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java index ec8c18d27..860ecbbe9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentBox.java @@ -174,6 +174,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentBox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -371,5 +375,17 @@ public CreateConnectionRequestContentBox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java index 69fbc0718..a6e3ce796 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentCustom.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentCustom build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentCustom build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java index e1cf23cd4..b838c74cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDaccount.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentDaccount build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentDaccount build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java index e18596dbd..c68e1a78f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDropbox.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentDropbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentDropbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java index ffc50c511..0f514b6f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentDwolla.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentDwolla build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentDwolla build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java index 6df993349..89a5ad6b6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEmail.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentEmail build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java index 33345f068..3ce5c0199 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernote.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentEvernote build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentEvernote build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java index c37610a42..328679494 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentEvernoteSandbox.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentEvernoteSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentEvernoteSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java index b386a3dc4..310bee1e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentExact.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentExact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentExact build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java index a565efdca..7a6c29ce3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFacebook.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentFacebook build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentFacebook build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java index 12ee25644..af2a012cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFitbit.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentFitbit build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentFitbit build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java index 184dd135a..07cdc1673 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentFlickr.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentFlickr build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentFlickr build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java index 7d377cb58..c4f025799 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGitHub.java @@ -175,6 +175,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentGitHub build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -372,5 +376,17 @@ public CreateConnectionRequestContentGitHub build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java index a9d097917..f2d48d065 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleApps.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentGoogleApps build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentGoogleApps build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java index a98522f26..a9ff7e3e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentGoogleOAuth2.java @@ -175,6 +175,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentGoogleOAuth2 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -372,5 +376,17 @@ public CreateConnectionRequestContentGoogleOAuth2 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java index c379d8906..6295dab08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentInstagram.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentInstagram build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentInstagram build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java index f284b1ad3..d841ade3e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentIp.java @@ -160,6 +160,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentIp build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -336,5 +340,17 @@ public CreateConnectionRequestContentIp build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java index 0f274f572..30ae3f58b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLine.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentLine build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentLine build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java index 51d626324..58a0f6708 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentLinkedin.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentLinkedin build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentLinkedin build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java index 4ca4cf2c2..8c10cc007 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentMiicard.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentMiicard build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentMiicard build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java index 38faf9147..14c1670ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth1.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOAuth1 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentOAuth1 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java index c2f3f7c23..41ae2365e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOAuth2.java @@ -175,6 +175,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOAuth2 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -372,5 +376,17 @@ public CreateConnectionRequestContentOAuth2 build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java index 71f320c16..a8687b6ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOffice365.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOffice365 build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentOffice365 build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java index 8b12c9206..2c700ac57 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOidc.java @@ -183,6 +183,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOidc build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -401,5 +405,17 @@ public CreateConnectionRequestContentOidc build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java index 46145dc3e..5f323849c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentOkta.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentOkta build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentOkta build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java index 08b5d4c78..425f2e99a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypal.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentPaypal build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentPaypal build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java index 63e767dcf..b3afa8fde 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPaypalSandbox.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentPaypalSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentPaypalSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java index b4db01e8f..b08d35c8f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPingFederate.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentPingFederate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentPingFederate build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java index e395eeb35..053bd3ef1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentPlanningCenter.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentPlanningCenter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentPlanningCenter build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java index 48c2259f8..a4a679457 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentRenren.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentRenren build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentRenren build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java index af2ee2fba..30d404aba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforce.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSalesforce build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentSalesforce build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java index 8d5db0969..d93926d10 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceCommunity.java @@ -151,6 +151,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSalesforceCommunity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -306,5 +310,17 @@ public CreateConnectionRequestContentSalesforceCommunity build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java index 397d81978..a0020e7f6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSalesforceSandbox.java @@ -151,6 +151,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSalesforceSandbox build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -306,5 +310,17 @@ public CreateConnectionRequestContentSalesforceSandbox build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java index d9c3b581f..46e6431d8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSaml.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSaml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentSaml build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java index 37163ff30..236a816a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSharepoint.java @@ -161,6 +161,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSharepoint build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -337,5 +341,17 @@ public CreateConnectionRequestContentSharepoint build() { showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java index 5c84a7e1f..e590a9eff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShop.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentShop build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentShop build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java index c1fd8d825..414cf1762 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentShopify.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentShopify build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentShopify build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java index 6d62e3f7d..cd88021ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSms.java @@ -149,6 +149,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -304,5 +308,17 @@ public CreateConnectionRequestContentSms build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java index 6a02a3393..4479d7032 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentSoundcloud.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentSoundcloud build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentSoundcloud build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java index bca038c6b..e53c1ccb7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentThirtySevenSignals.java @@ -151,6 +151,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentThirtySevenSignals build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -306,5 +310,17 @@ public CreateConnectionRequestContentThirtySevenSignals build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java index 8a1d4df97..5e29efc20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentTwitter.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentTwitter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentTwitter build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java index af702ef02..3cf0342e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentUntappd.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentUntappd build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentUntappd build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java index 7546ab15a..5411a4f83 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentVkontakte.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentVkontakte build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentVkontakte build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java index e069036b3..7a945f802 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWeibo.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentWeibo build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentWeibo build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java index fcd4cb155..d5061d852 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWindowsLive.java @@ -175,6 +175,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentWindowsLive build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage authentication(Optional authentication); _FinalStage authentication(ConnectionAuthenticationPurpose authentication); @@ -372,5 +376,17 @@ public CreateConnectionRequestContentWindowsLive build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java index 64ba24f7f..170bbeec4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentWordpress.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentWordpress build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentWordpress build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java index 5f87e25d5..1cd054a56 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYahoo.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentYahoo build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentYahoo build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java index 4aa12f7d4..777cd6b50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYammer.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentYammer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentYammer build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java index e031dddef..e128624cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionRequestContentYandex.java @@ -150,6 +150,10 @@ public interface StrategyStage { public interface _FinalStage { CreateConnectionRequestContentYandex build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -305,5 +309,17 @@ public CreateConnectionRequestContentYandex build() { options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java index 5a82d2dc3..112fa2eb7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateConnectionResponseContent.java @@ -432,5 +432,15 @@ public CreateConnectionResponseContent build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java index 55bfe702c..7c33e18da 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainRequestContent.java @@ -159,6 +159,10 @@ public interface TypeStage { public interface _FinalStage { CreateCustomDomainRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage verificationMethod(Optional verificationMethod); _FinalStage verificationMethod(CustomDomainVerificationMethodEnum verificationMethod); @@ -346,5 +350,17 @@ public CreateCustomDomainRequestContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java index fbb92a45c..56378f8d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateCustomDomainResponseContent.java @@ -260,6 +260,10 @@ public interface VerificationStage { public interface _FinalStage { CreateCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this is the default custom domain (true) or not (false).

    */ @@ -566,5 +570,17 @@ public CreateCustomDomainResponseContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java index 33b3d9e05..da8903a6b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningRequestContent.java @@ -131,5 +131,15 @@ public CreateDirectoryProvisioningRequestContent build() { return new CreateDirectoryProvisioningRequestContent( mapping, synchronizeAutomatically, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java index 04a0d2f8e..ab6b6b7a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectoryProvisioningResponseContent.java @@ -247,6 +247,10 @@ public interface UpdatedAtStage { public interface _FinalStage { CreateDirectoryProvisioningResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between Auth0 and IDP user attributes

    */ @@ -509,5 +513,17 @@ public CreateDirectoryProvisioningResponseContent build() { lastSynchronizationError, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java index 1619f8133..af32124c8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateDirectorySynchronizationResponseContent.java @@ -116,6 +116,10 @@ public interface StatusStage { public interface _FinalStage { CreateDirectorySynchronizationResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -180,5 +184,17 @@ public CreateDirectorySynchronizationResponseContent build() { return new CreateDirectorySynchronizationResponseContent( connectionId, synchronizationId, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEmailProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEmailProviderResponseContent.java index 25db1c9d6..3677195f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEmailProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEmailProviderResponseContent.java @@ -209,5 +209,15 @@ public CreateEmailProviderResponseContent build() { return new CreateEmailProviderResponseContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateRequestContent.java index 646bb455c..bcd7eb30d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateRequestContent.java @@ -261,6 +261,10 @@ public interface TemplateStage { public interface _FinalStage { CreateEmailTemplateRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Body of the email template.

    */ @@ -776,5 +780,17 @@ public CreateEmailTemplateRequestContent build() { enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateResponseContent.java index 3eac25b69..863fa1f39 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEmailTemplateResponseContent.java @@ -262,6 +262,10 @@ public interface TemplateStage { public interface _FinalStage { CreateEmailTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Body of the email template.

    */ @@ -777,5 +781,17 @@ public CreateEmailTemplateResponseContent build() { enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java index bc6ac47aa..8f945052c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyPublicWrappingResponseContent.java @@ -92,6 +92,10 @@ public interface AlgorithmStage { public interface _FinalStage { CreateEncryptionKeyPublicWrappingResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -135,5 +139,17 @@ public _FinalStage algorithm(@NotNull EncryptionKeyPublicWrappingAlgorithm algor public CreateEncryptionKeyPublicWrappingResponseContent build() { return new CreateEncryptionKeyPublicWrappingResponseContent(publicKey, algorithm, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java index 922f8ddda..08839950c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEncryptionKeyResponseContent.java @@ -201,6 +201,10 @@ public interface UpdatedAtStage { public interface _FinalStage { CreateEncryptionKeyResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    ID of parent wrapping key

    */ @@ -413,5 +417,17 @@ public CreateEncryptionKeyResponseContent build() { return new CreateEncryptionKeyResponseContent( kid, type, state, createdAt, updatedAt, parentKid, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamActionRequestContent.java index b415797bf..a1fafaea4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamActionRequestContent.java @@ -113,6 +113,10 @@ public interface DestinationStage { public interface _FinalStage { CreateEventStreamActionRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the event stream.

    */ @@ -221,5 +225,17 @@ public CreateEventStreamActionRequestContent build() { return new CreateEventStreamActionRequestContent( name, subscriptions, destination, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamEventBridgeRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamEventBridgeRequestContent.java index 08b37a544..ce8053cb9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamEventBridgeRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamEventBridgeRequestContent.java @@ -113,6 +113,10 @@ public interface DestinationStage { public interface _FinalStage { CreateEventStreamEventBridgeRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the event stream.

    */ @@ -221,5 +225,17 @@ public CreateEventStreamEventBridgeRequestContent build() { return new CreateEventStreamEventBridgeRequestContent( name, subscriptions, destination, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamRedeliveryResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamRedeliveryResponseContent.java index 561e13d39..da8201ac3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamRedeliveryResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamRedeliveryResponseContent.java @@ -193,5 +193,15 @@ public CreateEventStreamRedeliveryResponseContent build() { return new CreateEventStreamRedeliveryResponseContent( dateFrom, dateTo, statuses, eventTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventRequestContent.java index 0909fa7f5..e13f826dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventRequestContent.java @@ -85,6 +85,10 @@ public interface EventTypeStage { public interface _FinalStage { CreateEventStreamTestEventRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage data(Optional> data); _FinalStage data(Map data); @@ -132,5 +136,17 @@ public _FinalStage data(Optional> data) { public CreateEventStreamTestEventRequestContent build() { return new CreateEventStreamTestEventRequestContent(eventType, data, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java index 2269e28f1..1421fc9db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamTestEventResponseContent.java @@ -155,6 +155,10 @@ public interface EventTypeStage { public interface _FinalStage { CreateEventStreamTestEventResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Results of delivery attempts

    */ @@ -290,5 +294,17 @@ public CreateEventStreamTestEventResponseContent build() { return new CreateEventStreamTestEventResponseContent( id, eventStreamId, status, eventType, attempts, event, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamWebHookRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamWebHookRequestContent.java index c0ef573bb..eb3ceacd7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamWebHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateEventStreamWebHookRequestContent.java @@ -113,6 +113,10 @@ public interface DestinationStage { public interface _FinalStage { CreateEventStreamWebHookRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the event stream.

    */ @@ -221,5 +225,17 @@ public CreateEventStreamWebHookRequestContent build() { return new CreateEventStreamWebHookRequestContent( name, subscriptions, destination, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java index 48ebd22df..d98a7b0af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersFields.java @@ -90,6 +90,10 @@ public interface NameStage { public interface _FinalStage { CreateExportUsersFields build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Title of the column in the exported CSV.

    */ @@ -152,5 +156,17 @@ public _FinalStage exportAs(Optional exportAs) { public CreateExportUsersFields build() { return new CreateExportUsersFields(name, exportAs, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java index ab3539c98..31a11a0b8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateExportUsersResponseContent.java @@ -192,6 +192,10 @@ public interface IdStage { public interface _FinalStage { CreateExportUsersResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When this job was created.

    */ @@ -395,5 +399,17 @@ public CreateExportUsersResponseContent build() { return new CreateExportUsersResponseContent( status, type, createdAt, id, connectionId, format, limit, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowRequestContent.java index 929af5f34..98f221aaa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowRequestContent.java @@ -83,6 +83,10 @@ public interface NameStage { public interface _FinalStage { CreateFlowRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage actions(Optional> actions); _FinalStage actions(List actions); @@ -130,5 +134,17 @@ public _FinalStage actions(Optional> actions) { public CreateFlowRequestContent build() { return new CreateFlowRequestContent(name, actions, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowResponseContent.java index eabb8c199..1dce68339 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowResponseContent.java @@ -139,6 +139,10 @@ public interface UpdatedAtStage { public interface _FinalStage { CreateFlowResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage actions(Optional> actions); _FinalStage actions(List actions); @@ -237,5 +241,17 @@ public CreateFlowResponseContent build() { return new CreateFlowResponseContent( id, name, actions, createdAt, updatedAt, executedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java index ca63ad15d..4b9f4b2f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionActivecampaignApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupApiKeyWithBaseUrl setu public CreateFlowsVaultConnectionActivecampaignApiKey build() { return new CreateFlowsVaultConnectionActivecampaignApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java index 4cc4f4e86..0a6b54c70 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionActivecampaignUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionActivecampaignUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdActivecampaignEnum ap public CreateFlowsVaultConnectionActivecampaignUninitialized build() { return new CreateFlowsVaultConnectionActivecampaignUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java index e81a2ae98..1a298c343 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionAirtableApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupApiKey setup) { public CreateFlowsVaultConnectionAirtableApiKey build() { return new CreateFlowsVaultConnectionAirtableApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java index c2274bde3..73bec5fe4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAirtableUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionAirtableUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdAirtableEnum appId) { public CreateFlowsVaultConnectionAirtableUninitialized build() { return new CreateFlowsVaultConnectionAirtableUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java index 1668929f2..5301b1410 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0OauthApp.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionAuth0OauthApp build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthApp setup) { public CreateFlowsVaultConnectionAuth0OauthApp build() { return new CreateFlowsVaultConnectionAuth0OauthApp(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java index 779254ba7..be7b9c478 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionAuth0Uninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionAuth0Uninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdAuth0Enum appId) { public CreateFlowsVaultConnectionAuth0Uninitialized build() { return new CreateFlowsVaultConnectionAuth0Uninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java index 35f31b84a..83ad39ca6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryJwt.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionBigqueryJwt build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupBigqueryOauthJwt setup public CreateFlowsVaultConnectionBigqueryJwt build() { return new CreateFlowsVaultConnectionBigqueryJwt(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java index bf6368258..64309c78d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionBigqueryUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionBigqueryUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdBigqueryEnum appId) { public CreateFlowsVaultConnectionBigqueryUninitialized build() { return new CreateFlowsVaultConnectionBigqueryUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java index fab2da8c4..47c25b643 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionClearbitApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupSecretApiKey setup) { public CreateFlowsVaultConnectionClearbitApiKey build() { return new CreateFlowsVaultConnectionClearbitApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java index b6717e204..3a5c776f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionClearbitUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionClearbitUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdClearbitEnum appId) { public CreateFlowsVaultConnectionClearbitUninitialized build() { return new CreateFlowsVaultConnectionClearbitUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java index 5f0146cc4..a7b26704d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionDocusignOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionDocusignOauthCode build() { return new CreateFlowsVaultConnectionDocusignOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java index 8813762a1..d98b3ab2f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionDocusignUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionDocusignUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdDocusignEnum appId) { public CreateFlowsVaultConnectionDocusignUninitialized build() { return new CreateFlowsVaultConnectionDocusignUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java index 4fcb146b7..b3d8b851a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionGoogleSheetsOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionGoogleSheetsOauthCode build() { return new CreateFlowsVaultConnectionGoogleSheetsOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java index 288d85a00..a6582ca2a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionGoogleSheetsUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionGoogleSheetsUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdGoogleSheetsEnum appI public CreateFlowsVaultConnectionGoogleSheetsUninitialized build() { return new CreateFlowsVaultConnectionGoogleSheetsUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java index 38a897560..e92d05816 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectionHttpApiKeySetup setup) { public CreateFlowsVaultConnectionHttpApiKey build() { return new CreateFlowsVaultConnectionHttpApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java index 6e4cba3a3..ed376185b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBasicAuth.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpBasicAuth build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectionHttpBasicAuthSetup setup) public CreateFlowsVaultConnectionHttpBasicAuth build() { return new CreateFlowsVaultConnectionHttpBasicAuth(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java index 9da985db3..37290eade 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpBearer.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpBearer build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupHttpBearer setup) { public CreateFlowsVaultConnectionHttpBearer build() { return new CreateFlowsVaultConnectionHttpBearer(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java index aecc97ac6..608885985 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpOauthClientCredentials.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpOauthClientCredentials build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectionHttpOauthClientCredentials public CreateFlowsVaultConnectionHttpOauthClientCredentials build() { return new CreateFlowsVaultConnectionHttpOauthClientCredentials(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java index 1dcb5b91c..aaaff6f04 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHttpUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionHttpUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdHttpEnum appId) { public CreateFlowsVaultConnectionHttpUninitialized build() { return new CreateFlowsVaultConnectionHttpUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java index 742f14ea4..9d4a11bd8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHubspotApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupApiKey setup) { public CreateFlowsVaultConnectionHubspotApiKey build() { return new CreateFlowsVaultConnectionHubspotApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java index d8fd3237d..682862ea8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionHubspotOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionHubspotOauthCode build() { return new CreateFlowsVaultConnectionHubspotOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java index 980dd306f..93935a483 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionHubspotUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionHubspotUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdHubspotEnum appId) { public CreateFlowsVaultConnectionHubspotUninitialized build() { return new CreateFlowsVaultConnectionHubspotUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java index 8df737fa4..0785b7bb7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtJwt.java @@ -104,6 +104,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionJwtJwt build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -157,5 +161,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupJwt setup) { public CreateFlowsVaultConnectionJwtJwt build() { return new CreateFlowsVaultConnectionJwtJwt(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java index 97b2e4d46..f0e8e4153 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionJwtUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionJwtUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdJwtEnum appId) { public CreateFlowsVaultConnectionJwtUninitialized build() { return new CreateFlowsVaultConnectionJwtUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java index 0d407e44c..4041a30fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionMailchimpApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupSecretApiKey setup) { public CreateFlowsVaultConnectionMailchimpApiKey build() { return new CreateFlowsVaultConnectionMailchimpApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java index 180f4a210..d52bd220f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionMailchimpOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionMailchimpOauthCode build() { return new CreateFlowsVaultConnectionMailchimpOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java index 5148e5a9b..ad41b4c84 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailchimpUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionMailchimpUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdMailchimpEnum appId) public CreateFlowsVaultConnectionMailchimpUninitialized build() { return new CreateFlowsVaultConnectionMailchimpUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java index 214236373..aabbdfc34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionMailjetApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupMailjetApiKey setup) { public CreateFlowsVaultConnectionMailjetApiKey build() { return new CreateFlowsVaultConnectionMailjetApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java index 57a5e1500..e76859212 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionMailjetUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionMailjetUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdMailjetEnum appId) { public CreateFlowsVaultConnectionMailjetUninitialized build() { return new CreateFlowsVaultConnectionMailjetUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java index 3030697e4..c08c00138 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionPipedriveOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionPipedriveOauthCode build() { return new CreateFlowsVaultConnectionPipedriveOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java index 1b98642ef..60d17bb82 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveToken.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionPipedriveToken build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupToken setup) { public CreateFlowsVaultConnectionPipedriveToken build() { return new CreateFlowsVaultConnectionPipedriveToken(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java index fb097f101..985f69d96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionPipedriveUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionPipedriveUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdPipedriveEnum appId) public CreateFlowsVaultConnectionPipedriveUninitialized build() { return new CreateFlowsVaultConnectionPipedriveUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java index 845c6872c..87e6bcde6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionResponseContent.java @@ -246,6 +246,10 @@ public interface FingerprintStage { public interface _FinalStage { CreateFlowsVaultConnectionResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Flows Vault Connection environment.

    */ @@ -472,5 +476,17 @@ public CreateFlowsVaultConnectionResponseContent build() { fingerprint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java index 36b769b02..49533d159 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionSalesforceOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionSalesforceOauthCode build() { return new CreateFlowsVaultConnectionSalesforceOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java index 7688dad3f..146ce72b1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSalesforceUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionSalesforceUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdSalesforceEnum appId) public CreateFlowsVaultConnectionSalesforceUninitialized build() { return new CreateFlowsVaultConnectionSalesforceUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java index 4741baac3..9ef8e0637 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionSendgridApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupApiKey setup) { public CreateFlowsVaultConnectionSendgridApiKey build() { return new CreateFlowsVaultConnectionSendgridApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java index 2ba4df933..40eb54063 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSendgridUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionSendgridUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdSendgridEnum appId) { public CreateFlowsVaultConnectionSendgridUninitialized build() { return new CreateFlowsVaultConnectionSendgridUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java index 0195263a0..63222a794 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionSlackOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionSlackOauthCode build() { return new CreateFlowsVaultConnectionSlackOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java index 6bc6094f7..33fbd9dd5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionSlackUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdSlackEnum appId) { public CreateFlowsVaultConnectionSlackUninitialized build() { return new CreateFlowsVaultConnectionSlackUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java index 51dcefebd..853ad61dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionSlackWebhook.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionSlackWebhook build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupWebhook setup) { public CreateFlowsVaultConnectionSlackWebhook build() { return new CreateFlowsVaultConnectionSlackWebhook(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java index e3b11daf7..1b2ad99c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeKeyPair.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionStripeKeyPair build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupStripeKeyPair setup) { public CreateFlowsVaultConnectionStripeKeyPair build() { return new CreateFlowsVaultConnectionStripeKeyPair(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java index 19f3e4a46..87f0ee041 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeOauthCode.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionStripeOauthCode build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupOauthCode setup) { public CreateFlowsVaultConnectionStripeOauthCode build() { return new CreateFlowsVaultConnectionStripeOauthCode(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java index c8dedfa42..607e9ae2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionStripeUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionStripeUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdStripeEnum appId) { public CreateFlowsVaultConnectionStripeUninitialized build() { return new CreateFlowsVaultConnectionStripeUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java index c61fabeaf..09b10661e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramToken.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionTelegramToken build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupToken setup) { public CreateFlowsVaultConnectionTelegramToken build() { return new CreateFlowsVaultConnectionTelegramToken(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java index 7f1973cf9..a088e49fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTelegramUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionTelegramUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdTelegramEnum appId) { public CreateFlowsVaultConnectionTelegramUninitialized build() { return new CreateFlowsVaultConnectionTelegramUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java index de553b4ca..2921ee219 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioApiKey.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionTwilioApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupTwilioApiKey setup) { public CreateFlowsVaultConnectionTwilioApiKey build() { return new CreateFlowsVaultConnectionTwilioApiKey(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java index ece43e2c5..abe3037e5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionTwilioUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionTwilioUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdTwilioEnum appId) { public CreateFlowsVaultConnectionTwilioUninitialized build() { return new CreateFlowsVaultConnectionTwilioUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java index 66ebd11b4..246626fe3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappToken.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionWhatsappToken build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupToken setup) { public CreateFlowsVaultConnectionWhatsappToken build() { return new CreateFlowsVaultConnectionWhatsappToken(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java index 5c396e594..ccbcf55ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionWhatsappUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionWhatsappUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdWhatsappEnum appId) { public CreateFlowsVaultConnectionWhatsappUninitialized build() { return new CreateFlowsVaultConnectionWhatsappUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java index 80016bda2..0e344a138 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierUninitialized.java @@ -90,6 +90,10 @@ public interface AppIdStage { public interface _FinalStage { CreateFlowsVaultConnectionZapierUninitialized build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -133,5 +137,17 @@ public _FinalStage appId(@NotNull FlowsVaultConnectionAppIdZapierEnum appId) { public CreateFlowsVaultConnectionZapierUninitialized build() { return new CreateFlowsVaultConnectionZapierUninitialized(name, appId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java index 1c4c73970..214722b10 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFlowsVaultConnectionZapierWebhook.java @@ -105,6 +105,10 @@ public interface SetupStage { public interface _FinalStage { CreateFlowsVaultConnectionZapierWebhook build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -158,5 +162,17 @@ public _FinalStage setup(@NotNull FlowsVaultConnectioSetupWebhook setup) { public CreateFlowsVaultConnectionZapierWebhook build() { return new CreateFlowsVaultConnectionZapierWebhook(name, appId, setup, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFormRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFormRequestContent.java index facd598a5..b9856cf57 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFormRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFormRequestContent.java @@ -154,6 +154,10 @@ public interface NameStage { public interface _FinalStage { CreateFormRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage messages(Optional messages); _FinalStage messages(FormMessages messages); @@ -322,5 +326,17 @@ public CreateFormRequestContent build() { return new CreateFormRequestContent( name, messages, languages, translations, nodes, start, ending, style, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateFormResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateFormResponseContent.java index 559f31156..b3741747d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateFormResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateFormResponseContent.java @@ -222,6 +222,10 @@ public interface UpdatedAtStage { public interface _FinalStage { CreateFormResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage messages(Optional messages); _FinalStage messages(FormMessages messages); @@ -473,5 +477,17 @@ public CreateFormResponseContent build() { submittedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateGuardianEnrollmentTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateGuardianEnrollmentTicketResponseContent.java index 709085672..176711e78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateGuardianEnrollmentTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateGuardianEnrollmentTicketResponseContent.java @@ -127,5 +127,15 @@ public Builder ticketUrl(String ticketUrl) { public CreateGuardianEnrollmentTicketResponseContent build() { return new CreateGuardianEnrollmentTicketResponseContent(ticketId, ticketUrl, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java index eec5dddb0..821c0efed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateHookRequestContent.java @@ -138,6 +138,10 @@ public interface TriggerIdStage { public interface _FinalStage { CreateHookRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this hook will be executed (true) or ignored (false).

    */ @@ -245,5 +249,17 @@ public _FinalStage enabled(Optional enabled) { public CreateHookRequestContent build() { return new CreateHookRequestContent(name, script, enabled, dependencies, triggerId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateHookResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateHookResponseContent.java index b269591d6..d55ed8490 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateHookResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateHookResponseContent.java @@ -244,5 +244,15 @@ public CreateHookResponseContent build() { return new CreateHookResponseContent( triggerId, id, name, enabled, script, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java index f74fce543..b563c018f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateImportUsersResponseContent.java @@ -174,6 +174,10 @@ public interface ConnectionIdStage { public interface _FinalStage { CreateImportUsersResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Customer-defined ID.

    */ @@ -298,5 +302,17 @@ public CreateImportUsersResponseContent build() { return new CreateImportUsersResponseContent( status, type, createdAt, id, connectionId, externalId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamDatadogRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamDatadogRequestBody.java index c08e3d854..05b9227b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamDatadogRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamDatadogRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamDatadogRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamDatadogRequestBody build() { return new CreateLogStreamDatadogRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventBridgeRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventBridgeRequestBody.java index bfd39794c..f346aff27 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventBridgeRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventBridgeRequestBody.java @@ -154,6 +154,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamEventBridgeRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -332,5 +336,17 @@ public CreateLogStreamEventBridgeRequestBody build() { return new CreateLogStreamEventBridgeRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventGridRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventGridRequestBody.java index 14a4ec8d4..8ba035acd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventGridRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamEventGridRequestBody.java @@ -154,6 +154,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamEventGridRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -332,5 +336,17 @@ public CreateLogStreamEventGridRequestBody build() { return new CreateLogStreamEventGridRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamHttpRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamHttpRequestBody.java index 9b5ada744..b8d434f0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamHttpRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamHttpRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamHttpRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamHttpRequestBody build() { return new CreateLogStreamHttpRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamMixpanelRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamMixpanelRequestBody.java index 81950fe00..e1a694c9e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamMixpanelRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamMixpanelRequestBody.java @@ -154,6 +154,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamMixpanelRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -332,5 +336,17 @@ public CreateLogStreamMixpanelRequestBody build() { return new CreateLogStreamMixpanelRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSegmentRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSegmentRequestBody.java index 89db85ccd..c17c53ec5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSegmentRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSegmentRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamSegmentRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamSegmentRequestBody build() { return new CreateLogStreamSegmentRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSplunkRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSplunkRequestBody.java index 047680651..9490b9ed0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSplunkRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSplunkRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamSplunkRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamSplunkRequestBody build() { return new CreateLogStreamSplunkRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSumoRequestBody.java b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSumoRequestBody.java index 4cac7ed6f..27c592dcb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSumoRequestBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateLogStreamSumoRequestBody.java @@ -153,6 +153,10 @@ public interface SinkStage { public interface _FinalStage { CreateLogStreamSumoRequestBody build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    log stream name

    */ @@ -331,5 +335,17 @@ public CreateLogStreamSumoRequestBody build() { return new CreateLogStreamSumoRequestBody( name, type, isPriority, filters, piiConfig, sink, startFrom, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java index 992ec4de3..bbccab70c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateNetworkAclRequestContent.java @@ -126,6 +126,10 @@ public interface RuleStage { public interface _FinalStage { CreateNetworkAclRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -194,5 +198,17 @@ public _FinalStage rule(@NotNull NetworkAclRule rule) { public CreateNetworkAclRequestContent build() { return new CreateNetworkAclRequestContent(description, active, priority, rule, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java index 4802b453a..c67e921e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationDiscoveryDomainResponseContent.java @@ -175,6 +175,10 @@ public interface VerificationHostStage { public interface _FinalStage { CreateOrganizationDiscoveryDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -300,5 +304,17 @@ public CreateOrganizationDiscoveryDomainResponseContent build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationInvitationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationInvitationResponseContent.java index 1c4ca998c..a02395eac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationInvitationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationInvitationResponseContent.java @@ -465,5 +465,15 @@ public CreateOrganizationInvitationResponseContent build() { ticketId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java index 21128edeb..81852cb71 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java @@ -140,6 +140,10 @@ public interface NameStage { public interface _FinalStage { CreateOrganizationRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name of this organization.

    */ @@ -293,5 +297,17 @@ public CreateOrganizationRequestContent build() { return new CreateOrganizationRequestContent( name, displayName, branding, metadata, enabledConnections, tokenQuota, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java index 30aaaa64f..1b8144fbc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java @@ -265,5 +265,15 @@ public CreateOrganizationResponseContent build() { return new CreateOrganizationResponseContent( id, name, displayName, branding, metadata, tokenQuota, enabledConnections, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneProviderSendTestResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneProviderSendTestResponseContent.java index 0f46dfd8e..89a97c9d5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneProviderSendTestResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneProviderSendTestResponseContent.java @@ -127,5 +127,15 @@ public Builder message(String message) { public CreatePhoneProviderSendTestResponseContent build() { return new CreatePhoneProviderSendTestResponseContent(code, message, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java index ae6277c28..b365e78e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateResponseContent.java @@ -155,6 +155,10 @@ public interface DisabledStage { public interface _FinalStage { CreatePhoneTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -278,5 +282,17 @@ public CreatePhoneTemplateResponseContent build() { return new CreatePhoneTemplateResponseContent( id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateTestNotificationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateTestNotificationResponseContent.java index 217c9314f..1e02cf286 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateTestNotificationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePhoneTemplateTestNotificationResponseContent.java @@ -72,6 +72,10 @@ public interface MessageStage { public interface _FinalStage { CreatePhoneTemplateTestNotificationResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -100,5 +104,17 @@ public _FinalStage message(@NotNull String message) { public CreatePhoneTemplateTestNotificationResponseContent build() { return new CreatePhoneTemplateTestNotificationResponseContent(message, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java index 9f2cab85e..02793485e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialRequestContent.java @@ -70,7 +70,7 @@ public String getValue() { } /** - * @return Unique identifier for the device. Recommend using <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID">Android_ID</a> on Android and <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor">identifierForVendor</a>. + * @return Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor. */ @JsonProperty("device_id") public String getDeviceId() { @@ -141,7 +141,7 @@ public interface ValueStage { public interface DeviceIdStage { /** - *

    Unique identifier for the device. Recommend using <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID">Android_ID</a> on Android and <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor">identifierForVendor</a>.

    + *

    Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.

    */ _FinalStage deviceId(@NotNull String deviceId); } @@ -149,6 +149,10 @@ public interface DeviceIdStage { public interface _FinalStage { CreatePublicKeyDeviceCredentialRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    client_id of the client (application) this credential is for.

    */ @@ -216,8 +220,8 @@ public DeviceIdStage value(@NotNull String value) { } /** - *

    Unique identifier for the device. Recommend using <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID">Android_ID</a> on Android and <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor">identifierForVendor</a>.

    - *

    Unique identifier for the device. Recommend using <a href="http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID">Android_ID</a> on Android and <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/identifierForVendor">identifierForVendor</a>.

    + *

    Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.

    + *

    Unique identifier for the device. Recommend using Android_ID on Android and identifierForVendor.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -252,5 +256,17 @@ public CreatePublicKeyDeviceCredentialRequestContent build() { return new CreatePublicKeyDeviceCredentialRequestContent( deviceName, type, value, deviceId, clientId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java index 7287d4940..13a068cc0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreatePublicKeyDeviceCredentialResponseContent.java @@ -77,6 +77,10 @@ public interface IdStage { public interface _FinalStage { CreatePublicKeyDeviceCredentialResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage id(@NotNull String id) { public CreatePublicKeyDeviceCredentialResponseContent build() { return new CreatePublicKeyDeviceCredentialResponseContent(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java index 5bc6d05a9..7d7b51dd9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerRequestContent.java @@ -292,6 +292,10 @@ public interface IdentifierStage { public interface _FinalStage { CreateResourceServerRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for this resource server. Can not contain < or > characters.

    */ @@ -778,5 +782,17 @@ public CreateResourceServerRequestContent build() { subjectTypeAuthorization, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java index 67178cce5..2e2cdc700 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateResourceServerResponseContent.java @@ -738,5 +738,15 @@ public CreateResourceServerResponseContent build() { clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java index 3af2f35e5..ac4d8e960 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRoleRequestContent.java @@ -91,6 +91,10 @@ public interface NameStage { public interface _FinalStage { CreateRoleRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Description of the role.

    */ @@ -153,5 +157,17 @@ public _FinalStage description(Optional description) { public CreateRoleRequestContent build() { return new CreateRoleRequestContent(name, description, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRoleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRoleResponseContent.java index 63cb8d6cf..a58277c55 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRoleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRoleResponseContent.java @@ -157,5 +157,15 @@ public Builder description(String description) { public CreateRoleResponseContent build() { return new CreateRoleResponseContent(id, name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java index 7726d91f6..702341130 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRuleRequestContent.java @@ -127,6 +127,10 @@ public interface ScriptStage { public interface _FinalStage { CreateRuleRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Order that this rule should execute in relative to other rules. Lower-valued rules execute first.

    */ @@ -234,5 +238,17 @@ public _FinalStage order(Optional order) { public CreateRuleRequestContent build() { return new CreateRuleRequestContent(name, script, order, enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateRuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateRuleResponseContent.java index 5b3dc4157..fae9f0c7b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateRuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateRuleResponseContent.java @@ -249,5 +249,15 @@ public Builder stage(String stage) { public CreateRuleResponseContent build() { return new CreateRuleResponseContent(name, id, enabled, script, order, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationRequestContent.java index bc9639641..c0998c2a9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationRequestContent.java @@ -130,5 +130,15 @@ public Builder mapping(List mapping) { public CreateScimConfigurationRequestContent build() { return new CreateScimConfigurationRequestContent(userIdAttribute, mapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java index d9e4761b9..8174a9881 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimConfigurationResponseContent.java @@ -328,5 +328,15 @@ public CreateScimConfigurationResponseContent build() { updatedOn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateScimTokenResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateScimTokenResponseContent.java index 8eaff6e57..417ffc8b0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateScimTokenResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateScimTokenResponseContent.java @@ -221,5 +221,15 @@ public CreateScimTokenResponseContent build() { return new CreateScimTokenResponseContent( tokenId, token, scopes, createdAt, validUntil, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java index e69ccb0e6..3240bf39a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileRequestContent.java @@ -151,6 +151,10 @@ public interface NameStage { public interface _FinalStage { CreateSelfServiceProfileRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The description of the self-service Profile.

    */ @@ -330,5 +334,17 @@ public CreateSelfServiceProfileRequestContent build() { userAttributeProfileId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileResponseContent.java index 9dfd03cc3..e74ef8105 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileResponseContent.java @@ -355,5 +355,15 @@ public CreateSelfServiceProfileResponseContent build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileSsoTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileSsoTicketResponseContent.java index 3258ba8b2..d09136634 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileSsoTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateSelfServiceProfileSsoTicketResponseContent.java @@ -99,5 +99,15 @@ public Builder ticket(String ticket) { public CreateSelfServiceProfileSsoTicketResponseContent build() { return new CreateSelfServiceProfileSsoTicketResponseContent(ticket, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java index 44077540b..191c7374e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileRequestContent.java @@ -133,6 +133,10 @@ public interface TypeStage { public interface _FinalStage { CreateTokenExchangeProfileRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -208,5 +212,17 @@ public CreateTokenExchangeProfileRequestContent build() { return new CreateTokenExchangeProfileRequestContent( name, subjectTokenType, actionId, type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileResponseContent.java index 523fd9510..5c218bf6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateTokenExchangeProfileResponseContent.java @@ -277,5 +277,15 @@ public CreateTokenExchangeProfileResponseContent build() { return new CreateTokenExchangeProfileResponseContent( id, name, subjectTokenType, actionId, type, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateTokenQuota.java b/src/main/java/com/auth0/client/mgmt/types/CreateTokenQuota.java index 6e97155ff..98ebcca1a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateTokenQuota.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateTokenQuota.java @@ -70,6 +70,10 @@ public interface ClientCredentialsStage { public interface _FinalStage { CreateTokenQuota build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage clientCredentials(@NotNull TokenQuotaClientCredentials client public CreateTokenQuota build() { return new CreateTokenQuota(clientCredentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileRequestContent.java index 8f884ed88..2d3be0973 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileRequestContent.java @@ -95,6 +95,10 @@ public interface NameStage { public interface _FinalStage { CreateUserAttributeProfileRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage userId(Optional userId); _FinalStage userId(UserAttributeProfileUserId userId); @@ -179,5 +183,17 @@ public _FinalStage userId(Optional userId) { public CreateUserAttributeProfileRequestContent build() { return new CreateUserAttributeProfileRequestContent(name, userId, userAttributes, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileResponseContent.java index 2f7a2701e..363dd6ccc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserAttributeProfileResponseContent.java @@ -170,5 +170,15 @@ public CreateUserAttributeProfileResponseContent build() { return new CreateUserAttributeProfileResponseContent( id, name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java index 006836f7e..82e170ebd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserAuthenticationMethodResponseContent.java @@ -241,6 +241,10 @@ public interface TypeStage { public interface _FinalStage { CreateUserAuthenticationMethodResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The ID of the newly created authentication method (automatically generated by the application)

    */ @@ -626,5 +630,17 @@ public CreateUserAuthenticationMethodResponseContent build() { createdAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java index fa39b1afa..20cd7844d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserRequestContent.java @@ -300,6 +300,10 @@ public interface ConnectionStage { public interface _FinalStage { CreateUserRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The user's email.

    */ @@ -810,5 +814,17 @@ public CreateUserRequestContent build() { username, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateUserResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateUserResponseContent.java index ce01f5312..658d34165 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateUserResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateUserResponseContent.java @@ -145,7 +145,7 @@ public Optional getUsername() { } /** - * @return Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>. + * @return Phone number for this user. Follows the E.164 recommendation. */ @JsonProperty("phone_number") public Optional getPhoneNumber() { @@ -466,7 +466,7 @@ public Builder username(String username) { } /** - *

    Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>.

    + *

    Phone number for this user. Follows the E.164 recommendation.

    */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { @@ -713,5 +713,15 @@ public CreateUserResponseContent build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateVerifiableCredentialTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateVerifiableCredentialTemplateResponseContent.java index a6ebb8069..617bf31d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateVerifiableCredentialTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateVerifiableCredentialTemplateResponseContent.java @@ -418,5 +418,15 @@ public CreateVerifiableCredentialTemplateResponseContent build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java index 423b6f53f..c242bbf22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateVerificationEmailResponseContent.java @@ -135,6 +135,10 @@ public interface IdStage { public interface _FinalStage { CreateVerificationEmailResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When this job was created.

    */ @@ -227,5 +231,17 @@ public _FinalStage createdAt(Optional createdAt) { public CreateVerificationEmailResponseContent build() { return new CreateVerificationEmailResponseContent(status, type, createdAt, id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CredentialId.java b/src/main/java/com/auth0/client/mgmt/types/CredentialId.java index f50986cde..9c6a9978a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CredentialId.java +++ b/src/main/java/com/auth0/client/mgmt/types/CredentialId.java @@ -76,6 +76,10 @@ public interface IdStage { public interface _FinalStage { CredentialId build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage id(@NotNull String id) { public CredentialId build() { return new CredentialId(id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java b/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java index c9be47932..0f22b8595 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomDomain.java @@ -270,6 +270,10 @@ public interface TypeStage { public interface _FinalStage { CustomDomain build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this is the default custom domain (true) or not (false).

    */ @@ -611,5 +615,17 @@ public CustomDomain build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomProviderConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/CustomProviderConfiguration.java index bdf32df78..56af9dbb6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomProviderConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomProviderConfiguration.java @@ -103,5 +103,15 @@ public Builder addAllDeliveryMethods(List deli public CustomProviderConfiguration build() { return new CustomProviderConfiguration(deliveryMethods, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomProviderCredentials.java b/src/main/java/com/auth0/client/mgmt/types/CustomProviderCredentials.java index 5a718e799..47cbdc303 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomProviderCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomProviderCredentials.java @@ -55,5 +55,15 @@ public Builder from(CustomProviderCredentials other) { public CustomProviderCredentials build() { return new CustomProviderCredentials(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/CustomSigningKeyJwk.java b/src/main/java/com/auth0/client/mgmt/types/CustomSigningKeyJwk.java index 1b04b9cdf..30d7cee06 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CustomSigningKeyJwk.java +++ b/src/main/java/com/auth0/client/mgmt/types/CustomSigningKeyJwk.java @@ -250,6 +250,10 @@ public interface KtyStage { public interface _FinalStage { CustomSigningKeyJwk build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Key identifier

    */ @@ -638,5 +642,17 @@ public CustomSigningKeyJwk build() { return new CustomSigningKeyJwk( kty, kid, use, keyOps, alg, n, e, crv, x, y, x5U, x5C, x5T, x5TS256, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DailyStats.java b/src/main/java/com/auth0/client/mgmt/types/DailyStats.java index 9a9419276..9e45ebb4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DailyStats.java +++ b/src/main/java/com/auth0/client/mgmt/types/DailyStats.java @@ -249,5 +249,15 @@ public Builder createdAt(String createdAt) { public DailyStats build() { return new DailyStats(date, logins, signups, leakedPasswords, updatedAt, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DefaultTokenQuota.java b/src/main/java/com/auth0/client/mgmt/types/DefaultTokenQuota.java index 588640ef6..4dd9253ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DefaultTokenQuota.java +++ b/src/main/java/com/auth0/client/mgmt/types/DefaultTokenQuota.java @@ -116,5 +116,15 @@ public Builder organizations(TokenQuotaConfiguration organizations) { public DefaultTokenQuota build() { return new DefaultTokenQuota(clients, organizations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java index 5f1777c0f..829ea5e96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteActionRequestParameters.java @@ -130,5 +130,15 @@ public Builder force(com.auth0.client.mgmt.core.Nullable force) { public DeleteActionRequestParameters build() { return new DeleteActionRequestParameters(force, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java index 3a5d3b645..4655b6725 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserBlocksByIdentifierRequestParameters.java @@ -77,6 +77,10 @@ public interface IdentifierStage { public interface _FinalStage { DeleteUserBlocksByIdentifierRequestParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage identifier(@NotNull String identifier) { public DeleteUserBlocksByIdentifierRequestParameters build() { return new DeleteUserBlocksByIdentifierRequestParameters(identifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java index 4f2c23fe2..4dfd8bb2d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserGrantByUserIdRequestParameters.java @@ -77,6 +77,10 @@ public interface UserIdStage { public interface _FinalStage { DeleteUserGrantByUserIdRequestParameters build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage userId(@NotNull String userId) { public DeleteUserGrantByUserIdRequestParameters build() { return new DeleteUserGrantByUserIdRequestParameters(userId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java index becb6c2ed..ad2e2d192 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeleteUserIdentityResponseContentItem.java @@ -85,7 +85,7 @@ public String getProvider() { } /** - * @return <code>true</code> if the identity provider is a social provider, <code>false</code>s otherwise + * @return true if the identity provider is a social provider, falses otherwise */ @JsonProperty("isSocial") public Optional getIsSocial() { @@ -192,8 +192,12 @@ public interface ProviderStage { public interface _FinalStage { DeleteUserIdentityResponseContentItem build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** - *

    <code>true</code> if the identity provider is a social provider, <code>false</code>s otherwise

    + *

    true if the identity provider is a social provider, falses otherwise

    */ _FinalStage isSocial(Optional isSocial); @@ -371,7 +375,7 @@ public _FinalStage accessToken(Optional accessToken) { } /** - *

    <code>true</code> if the identity provider is a social provider, <code>false</code>s otherwise

    + *

    true if the identity provider is a social provider, falses otherwise

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -381,7 +385,7 @@ public _FinalStage isSocial(Boolean isSocial) { } /** - *

    <code>true</code> if the identity provider is a social provider, <code>false</code>s otherwise

    + *

    true if the identity provider is a social provider, falses otherwise

    */ @java.lang.Override @JsonSetter(value = "isSocial", nulls = Nulls.SKIP) @@ -403,5 +407,17 @@ public DeleteUserIdentityResponseContentItem build() { profileData, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeployActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/DeployActionResponseContent.java index 5b2c38332..405f0ffbe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeployActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeployActionResponseContent.java @@ -572,5 +572,15 @@ public DeployActionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionRequestContent.java index c1b9c628c..99dd35839 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionRequestContent.java @@ -97,5 +97,15 @@ public Builder updateDraft(Boolean updateDraft) { public DeployActionVersionRequestContent build() { return new DeployActionVersionRequestContent(updateDraft, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionResponseContent.java index 9dbe98bc6..978d962c0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeployActionVersionResponseContent.java @@ -573,5 +573,15 @@ public DeployActionVersionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java b/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java index 43b299cd1..2d411b18c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/DeviceCredential.java @@ -243,5 +243,15 @@ public Builder clientId(String clientId) { public DeviceCredential build() { return new DeviceCredential(id, deviceName, deviceId, type, userId, clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java index 4a51b5ec9..7d8d587c0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioning.java @@ -246,6 +246,10 @@ public interface UpdatedAtStage { public interface _FinalStage { DirectoryProvisioning build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between Auth0 and IDP user attributes

    */ @@ -508,5 +512,17 @@ public DirectoryProvisioning build() { lastSynchronizationError, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java index b6b111e63..7340637fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/DirectoryProvisioningMappingItem.java @@ -94,6 +94,10 @@ public interface IdpStage { public interface _FinalStage { DirectoryProvisioningMappingItem build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage idp(@NotNull String idp) { public DirectoryProvisioningMappingItem build() { return new DirectoryProvisioningMappingItem(auth0, idp, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DomainCertificate.java b/src/main/java/com/auth0/client/mgmt/types/DomainCertificate.java index 48fab1960..1673b130c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DomainCertificate.java +++ b/src/main/java/com/auth0/client/mgmt/types/DomainCertificate.java @@ -177,5 +177,15 @@ public Builder renewsBefore(String renewsBefore) { public DomainCertificate build() { return new DomainCertificate(status, errorMsg, certificateAuthority, renewsBefore, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DomainVerification.java b/src/main/java/com/auth0/client/mgmt/types/DomainVerification.java index 1ac0f4125..5a1b9e78c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DomainVerification.java +++ b/src/main/java/com/auth0/client/mgmt/types/DomainVerification.java @@ -184,5 +184,15 @@ public Builder lastVerifiedAt(String lastVerifiedAt) { public DomainVerification build() { return new DomainVerification(methods, status, errorMsg, lastVerifiedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java b/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java index d34982711..a987492d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/DomainVerificationMethod.java @@ -106,6 +106,10 @@ public interface RecordStage { public interface _FinalStage { DomainVerificationMethod build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The name of the txt record for verification

    */ @@ -178,5 +182,17 @@ public _FinalStage domain(Optional domain) { public DomainVerificationMethod build() { return new DomainVerificationMethod(name, record, domain, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java b/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java index 5e65ffcc4..cc8174329 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java @@ -202,5 +202,15 @@ public EmailAttribute build() { return new EmailAttribute( identifier, unique, profileRequired, verificationMethod, signup, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentials.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentials.java index 2de5fba4f..2c6d34692 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentials.java @@ -219,5 +219,15 @@ public Builder smtpUser(String smtpUser) { public EmailProviderCredentials build() { return new EmailProviderCredentials(apiUser, region, smtpHost, smtpPort, smtpUser, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaAccessKeyId.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaAccessKeyId.java index aeb41ba39..b544bb489 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaAccessKeyId.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaAccessKeyId.java @@ -161,5 +161,15 @@ public EmailProviderCredentialsSchemaAccessKeyId build() { return new EmailProviderCredentialsSchemaAccessKeyId( accessKeyId, secretAccessKey, region, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaApiKey.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaApiKey.java index 7b5605062..3534d5a42 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaApiKey.java @@ -152,5 +152,15 @@ public Builder region(EmailMailgunRegionEnum region) { public EmailProviderCredentialsSchemaApiKey build() { return new EmailProviderCredentialsSchemaApiKey(apiKey, domain, region, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaClientId.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaClientId.java index afd69f78a..19f4703c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaClientId.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaClientId.java @@ -160,5 +160,15 @@ public Builder clientSecret(String clientSecret) { public EmailProviderCredentialsSchemaClientId build() { return new EmailProviderCredentialsSchemaClientId(tenantId, clientId, clientSecret, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaConnectionString.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaConnectionString.java index 92c4c9bfe..721af30fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaConnectionString.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaConnectionString.java @@ -99,5 +99,15 @@ public Builder connectionString(String connectionString) { public EmailProviderCredentialsSchemaConnectionString build() { return new EmailProviderCredentialsSchemaConnectionString(connectionString, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaSmtpHost.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaSmtpHost.java index e32a7d5c8..459ee93f2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaSmtpHost.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaSmtpHost.java @@ -185,5 +185,15 @@ public EmailProviderCredentialsSchemaSmtpHost build() { return new EmailProviderCredentialsSchemaSmtpHost( smtpHost, smtpPort, smtpUser, smtpPass, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaThree.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaThree.java index c3c5e07a2..c5fa7edd9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaThree.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaThree.java @@ -123,5 +123,15 @@ public Builder region(EmailSparkPostRegionEnum region) { public EmailProviderCredentialsSchemaThree build() { return new EmailProviderCredentialsSchemaThree(apiKey, region, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java index 330800496..64a339fcf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailProviderCredentialsSchemaZero.java @@ -77,6 +77,10 @@ public interface ApiKeyStage { public interface _FinalStage { EmailProviderCredentialsSchemaZero build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage apiKey(@NotNull String apiKey) { public EmailProviderCredentialsSchemaZero build() { return new EmailProviderCredentialsSchemaZero(apiKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java b/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java index d3e88dafb..0f6dffd88 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/EncryptionKey.java @@ -200,6 +200,10 @@ public interface UpdatedAtStage { public interface _FinalStage { EncryptionKey build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    ID of parent wrapping key

    */ @@ -412,5 +416,17 @@ public EncryptionKey build() { return new EncryptionKey( kid, type, state, createdAt, updatedAt, parentKid, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java index daaeb1ecb..860e983c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionConfiguration.java @@ -76,6 +76,10 @@ public interface ActionIdStage { public interface _FinalStage { EventStreamActionConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage actionId(@NotNull String actionId) { public EventStreamActionConfiguration build() { return new EventStreamActionConfiguration(actionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionDestination.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionDestination.java index 03ef7d75a..3f48dd33b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionDestination.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionDestination.java @@ -85,6 +85,10 @@ public interface ConfigurationStage { public interface _FinalStage { EventStreamActionDestination build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage configuration(@NotNull EventStreamActionConfiguration configu public EventStreamActionDestination build() { return new EventStreamActionDestination(type, configuration, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionResponseContent.java index a79e68339..d15fc5969 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamActionResponseContent.java @@ -271,5 +271,15 @@ public EventStreamActionResponseContent build() { return new EventStreamActionResponseContent( id, name, subscriptions, destination, status, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEvent.java index 1bc25e7b7..2395092e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEvent.java @@ -250,5 +250,15 @@ public Builder data(String data) { public EventStreamCloudEvent build() { return new EventStreamCloudEvent(id, source, specversion, type, time, data, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java index 859ae3340..3e55b7e29 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDelivery.java @@ -154,6 +154,10 @@ public interface EventTypeStage { public interface _FinalStage { EventStreamDelivery build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Results of delivery attempts

    */ @@ -288,5 +292,17 @@ public _FinalStage attempts(List attempts) { public EventStreamDelivery build() { return new EventStreamDelivery(id, eventStreamId, status, eventType, attempts, event, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java index cc0d3adef..d8502ab4b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryAttempt.java @@ -109,6 +109,10 @@ public interface TimestampStage { public interface _FinalStage { EventStreamDeliveryAttempt build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Delivery error message, if applicable

    */ @@ -181,5 +185,17 @@ public _FinalStage errorMessage(Optional errorMessage) { public EventStreamDeliveryAttempt build() { return new EventStreamDeliveryAttempt(status, timestamp, errorMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java index 5605c44ae..100c67e43 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeConfiguration.java @@ -109,6 +109,10 @@ public interface AwsRegionStage { public interface _FinalStage { EventStreamEventBridgeConfiguration build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    AWS Partner Event Source for EventBridge destination.

    */ @@ -182,5 +186,17 @@ public EventStreamEventBridgeConfiguration build() { return new EventStreamEventBridgeConfiguration( awsAccountId, awsRegion, awsPartnerEventSource, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeDestination.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeDestination.java index 987b30a91..eb5e9aa6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeDestination.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeDestination.java @@ -85,6 +85,10 @@ public interface ConfigurationStage { public interface _FinalStage { EventStreamEventBridgeDestination build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage configuration(@NotNull EventStreamEventBridgeConfiguration co public EventStreamEventBridgeDestination build() { return new EventStreamEventBridgeDestination(type, configuration, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeResponseContent.java index 9735a2d13..efb884cb8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventBridgeResponseContent.java @@ -272,5 +272,15 @@ public EventStreamEventBridgeResponseContent build() { return new EventStreamEventBridgeResponseContent( id, name, subscriptions, destination, status, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscription.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscription.java index 9e50268e8..db6fed26c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscription.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscription.java @@ -91,5 +91,15 @@ public Builder eventType(String eventType) { public EventStreamSubscription build() { return new EventStreamSubscription(eventType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java index ef2acb6f2..f9a0bffbd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBasicAuth.java @@ -89,6 +89,10 @@ public interface UsernameStage { public interface _FinalStage { EventStreamWebhookBasicAuth build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -132,5 +136,17 @@ public _FinalStage username(@NotNull String username) { public EventStreamWebhookBasicAuth build() { return new EventStreamWebhookBasicAuth(method, username, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBearerAuth.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBearerAuth.java index f54032db2..480363876 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBearerAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookBearerAuth.java @@ -71,6 +71,10 @@ public interface MethodStage { public interface _FinalStage { EventStreamWebhookBearerAuth build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage method(@NotNull EventStreamWebhookBearerAuthMethodEnum method public EventStreamWebhookBearerAuth build() { return new EventStreamWebhookBearerAuth(method, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java index a3dafb72d..2c0760dc7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookConfiguration.java @@ -91,6 +91,10 @@ public interface WebhookAuthorizationStage { public interface _FinalStage { EventStreamWebhookConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -135,5 +139,17 @@ public _FinalStage webhookAuthorization(@NotNull EventStreamWebhookAuthorization public EventStreamWebhookConfiguration build() { return new EventStreamWebhookConfiguration(webhookEndpoint, webhookAuthorization, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookDestination.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookDestination.java index 16f5f420a..345ec7068 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookDestination.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookDestination.java @@ -85,6 +85,10 @@ public interface ConfigurationStage { public interface _FinalStage { EventStreamWebhookDestination build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage configuration(@NotNull EventStreamWebhookConfiguration config public EventStreamWebhookDestination build() { return new EventStreamWebhookDestination(type, configuration, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookResponseContent.java index f21a19b20..0867fb8dc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamWebhookResponseContent.java @@ -271,5 +271,15 @@ public EventStreamWebhookResponseContent build() { return new EventStreamWebhookResponseContent( id, name, subscriptions, destination, status, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java index 9f99ee92e..54865823f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExpressConfiguration.java @@ -237,6 +237,10 @@ public interface AdminLoginDomainStage { public interface _FinalStage { ExpressConfiguration build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    List of client IDs that are linked to this express configuration (e.g. web or mobile clients).

    */ @@ -440,5 +444,17 @@ public ExpressConfiguration build() { oinSubmissionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java b/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java index 24fcd7f9a..66ad51157 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExpressConfigurationOrNull.java @@ -237,6 +237,10 @@ public interface AdminLoginDomainStage { public interface _FinalStage { ExpressConfigurationOrNull build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    List of client IDs that are linked to this express configuration (e.g. web or mobile clients).

    */ @@ -440,5 +444,17 @@ public ExpressConfigurationOrNull build() { oinSubmissionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ExtensibilityEmailProviderCredentials.java b/src/main/java/com/auth0/client/mgmt/types/ExtensibilityEmailProviderCredentials.java index 6997e2fa5..62ed29127 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ExtensibilityEmailProviderCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/ExtensibilityEmailProviderCredentials.java @@ -55,5 +55,15 @@ public Builder from(ExtensibilityEmailProviderCredentials other) { public ExtensibilityEmailProviderCredentials build() { return new ExtensibilityEmailProviderCredentials(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java b/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java index b9228e67b..fa43fb939 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java +++ b/src/main/java/com/auth0/client/mgmt/types/FederatedConnectionTokenSet.java @@ -278,5 +278,15 @@ public FederatedConnectionTokenSet build() { return new FederatedConnectionTokenSet( id, connection, scope, expiresAt, issuedAt, lastUsedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContacts.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContacts.java index 31cc8cbc9..358edb777 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContacts.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContacts.java @@ -149,6 +149,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionActivecampaignListContacts build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -267,5 +271,17 @@ public FlowActionActivecampaignListContacts build() { return new FlowActionActivecampaignListContacts( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContactsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContactsParams.java index 92b6b2466..f4694b167 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContactsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignListContactsParams.java @@ -84,6 +84,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionActivecampaignListContactsParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage email(@NotNull String email) { public FlowActionActivecampaignListContactsParams build() { return new FlowActionActivecampaignListContactsParams(connectionId, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContact.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContact.java index 251229c9d..69a455b60 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContact.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContact.java @@ -149,6 +149,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionActivecampaignUpsertContact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -267,5 +271,17 @@ public FlowActionActivecampaignUpsertContact build() { return new FlowActionActivecampaignUpsertContact( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContactParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContactParams.java index 756f1d32e..891aac6ac 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContactParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionActivecampaignUpsertContactParams.java @@ -131,6 +131,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionActivecampaignUpsertContactParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage firstName(Optional firstName); _FinalStage firstName(String firstName); @@ -249,5 +253,17 @@ public FlowActionActivecampaignUpsertContactParams build() { return new FlowActionActivecampaignUpsertContactParams( connectionId, email, firstName, lastName, phone, customFields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecord.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecord.java index 4798e813f..0ab0ebee5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecord.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecord.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAirtableCreateRecord build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAirtableCreateRecord build() { return new FlowActionAirtableCreateRecord( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecordParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecordParams.java index 1b77ec248..43a01c498 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecordParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableCreateRecordParams.java @@ -114,6 +114,10 @@ public interface TableNameStage { public interface _FinalStage { FlowActionAirtableCreateRecordParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage fields(Optional> fields); _FinalStage fields(Map fields); @@ -182,5 +186,17 @@ public FlowActionAirtableCreateRecordParams build() { return new FlowActionAirtableCreateRecordParams( connectionId, baseId, tableName, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecords.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecords.java index d877cf0b8..01af182fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecords.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecords.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAirtableListRecords build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAirtableListRecords build() { return new FlowActionAirtableListRecords( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecordsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecordsParams.java index cf5310d9f..139d96bea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecordsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableListRecordsParams.java @@ -124,6 +124,10 @@ public interface TableNameStage { public interface _FinalStage { FlowActionAirtableListRecordsParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage query(Optional query); _FinalStage query(String query); @@ -212,5 +216,17 @@ public FlowActionAirtableListRecordsParams build() { return new FlowActionAirtableListRecordsParams( connectionId, baseId, tableName, query, view, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecord.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecord.java index 49678b614..9e3c0dd80 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecord.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecord.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAirtableUpdateRecord build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAirtableUpdateRecord build() { return new FlowActionAirtableUpdateRecord( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecordParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecordParams.java index cc9e72e32..30369848f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecordParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAirtableUpdateRecordParams.java @@ -128,6 +128,10 @@ public interface RecordIdStage { public interface _FinalStage { FlowActionAirtableUpdateRecordParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage fields(Optional> fields); _FinalStage fields(Map fields); @@ -207,5 +211,17 @@ public FlowActionAirtableUpdateRecordParams build() { return new FlowActionAirtableUpdateRecordParams( connectionId, baseId, tableName, recordId, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUser.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUser.java index e91bddef2..3cc999bcd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUser.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0CreateUser build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0CreateUser build() { return new FlowActionAuth0CreateUser( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUserParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUserParams.java index adee48f44..73cee347c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUserParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0CreateUserParams.java @@ -82,6 +82,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionAuth0CreateUserParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage payload(Map payload); _FinalStage putAllPayload(Map payload); @@ -142,5 +146,17 @@ public _FinalStage payload(Map payload) { public FlowActionAuth0CreateUserParams build() { return new FlowActionAuth0CreateUserParams(connectionId, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUser.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUser.java index 4cae3a052..b7521ffba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUser.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0GetUser build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0GetUser build() { return new FlowActionAuth0GetUser( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUserParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUserParams.java index 6daecbc64..c84dce308 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUserParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0GetUserParams.java @@ -82,6 +82,10 @@ public interface UserIdStage { public interface _FinalStage { FlowActionAuth0GetUserParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage userId(@NotNull String userId) { public FlowActionAuth0GetUserParams build() { return new FlowActionAuth0GetUserParams(connectionId, userId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCall.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCall.java index 1a443ca5b..4a17bdf73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCall.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCall.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0MakeCall build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0MakeCall build() { return new FlowActionAuth0MakeCall( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCallParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCallParams.java index 0d89ee8fe..50981ff98 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCallParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0MakeCallParams.java @@ -109,6 +109,10 @@ public interface MessageStage { public interface _FinalStage { FlowActionAuth0MakeCallParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage from(Optional from); _FinalStage from(String from); @@ -186,5 +190,17 @@ public _FinalStage from(Optional from) { public FlowActionAuth0MakeCallParams build() { return new FlowActionAuth0MakeCallParams(from, to, message, customVars, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmail.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmail.java index ace3b0056..1ad48443e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmail.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0SendEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0SendEmail build() { return new FlowActionAuth0SendEmail( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParams.java index e5271bfc8..747a42805 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParams.java @@ -123,6 +123,10 @@ public interface BodyStage { public interface _FinalStage { FlowActionAuth0SendEmailParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage from(Optional from); _FinalStage from(FlowActionAuth0SendEmailParamsFrom from); @@ -210,5 +214,17 @@ public _FinalStage from(Optional from) { public FlowActionAuth0SendEmailParams build() { return new FlowActionAuth0SendEmailParams(from, to, subject, body, customVars, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParamsFrom.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParamsFrom.java index e887fad68..a409ad550 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParamsFrom.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendEmailParamsFrom.java @@ -83,6 +83,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionAuth0SendEmailParamsFrom build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -130,5 +134,17 @@ public _FinalStage name(Optional name) { public FlowActionAuth0SendEmailParamsFrom build() { return new FlowActionAuth0SendEmailParamsFrom(name, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequest.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequest.java index 64e6c554a..19b2eb76e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequest.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0SendRequest build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0SendRequest build() { return new FlowActionAuth0SendRequest( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequestParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequestParams.java index a8f5fd9a9..a42688b65 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequestParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendRequestParams.java @@ -130,6 +130,10 @@ public interface PathnameStage { public interface _FinalStage { FlowActionAuth0SendRequestParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage method(Optional method); _FinalStage method(FlowActionAuth0SendRequestParamsMethod method); @@ -252,5 +256,17 @@ public FlowActionAuth0SendRequestParams build() { return new FlowActionAuth0SendRequestParams( connectionId, pathname, method, headers, params, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSms.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSms.java index 75c167912..173343582 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSms.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0SendSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0SendSms build() { return new FlowActionAuth0SendSms( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSmsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSmsParams.java index a5b2953be..42082e00b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSmsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0SendSmsParams.java @@ -109,6 +109,10 @@ public interface MessageStage { public interface _FinalStage { FlowActionAuth0SendSmsParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage from(Optional from); _FinalStage from(String from); @@ -186,5 +190,17 @@ public _FinalStage from(Optional from) { public FlowActionAuth0SendSmsParams build() { return new FlowActionAuth0SendSmsParams(from, to, message, customVars, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUser.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUser.java index ac86cc353..17d7f050d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUser.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionAuth0UpdateUser build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionAuth0UpdateUser build() { return new FlowActionAuth0UpdateUser( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUserParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUserParams.java index 3d81255d1..73c8e2a09 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUserParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionAuth0UpdateUserParams.java @@ -94,6 +94,10 @@ public interface UserIdStage { public interface _FinalStage { FlowActionAuth0UpdateUserParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage changes(Map changes); _FinalStage putAllChanges(Map changes); @@ -164,5 +168,17 @@ public _FinalStage changes(Map changes) { public FlowActionAuth0UpdateUserParams build() { return new FlowActionAuth0UpdateUserParams(connectionId, userId, changes, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRows.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRows.java index 71f00d10c..27e319fd7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRows.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRows.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionBigqueryInsertRows build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionBigqueryInsertRows build() { return new FlowActionBigqueryInsertRows( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRowsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRowsParams.java index 1dd56cd7f..64090d986 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRowsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionBigqueryInsertRowsParams.java @@ -114,6 +114,10 @@ public interface TableIdStage { public interface _FinalStage { FlowActionBigqueryInsertRowsParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage data(Optional> data); _FinalStage data(Map data); @@ -181,5 +185,17 @@ public _FinalStage data(Optional> data) { public FlowActionBigqueryInsertRowsParams build() { return new FlowActionBigqueryInsertRowsParams(connectionId, datasetId, tableId, data, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompany.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompany.java index c155b690e..86e3074de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompany.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompany.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionClearbitFindCompany build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionClearbitFindCompany build() { return new FlowActionClearbitFindCompany( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompanyParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompanyParams.java index de83605e4..74b4ac56d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompanyParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindCompanyParams.java @@ -84,6 +84,10 @@ public interface DomainStage { public interface _FinalStage { FlowActionClearbitFindCompanyParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage domain(@NotNull String domain) { public FlowActionClearbitFindCompanyParams build() { return new FlowActionClearbitFindCompanyParams(connectionId, domain, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPerson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPerson.java index e56f63599..5e21fb782 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPerson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPerson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionClearbitFindPerson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionClearbitFindPerson build() { return new FlowActionClearbitFindPerson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPersonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPersonParams.java index 8c4cb50f3..e915fd152 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPersonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionClearbitFindPersonParams.java @@ -84,6 +84,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionClearbitFindPersonParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage email(@NotNull String email) { public FlowActionClearbitFindPersonParams build() { return new FlowActionClearbitFindPersonParams(connectionId, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmail.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmail.java index 3c52ff4de..447db61cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmail.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionEmailVerifyEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionEmailVerifyEmail build() { return new FlowActionEmailVerifyEmail( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParams.java index 8a1714450..a9ed3a726 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParams.java @@ -84,6 +84,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionEmailVerifyEmailParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage rules(Optional rules); _FinalStage rules(FlowActionEmailVerifyEmailParamsRules rules); @@ -131,5 +135,17 @@ public _FinalStage rules(Optional rules) public FlowActionEmailVerifyEmailParams build() { return new FlowActionEmailVerifyEmailParams(email, rules, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParamsRules.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParamsRules.java index 77655741d..57806ac07 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParamsRules.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionEmailVerifyEmailParamsRules.java @@ -228,5 +228,15 @@ public FlowActionEmailVerifyEmailParamsRules build() { allowlist, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanCondition.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanCondition.java index 8126646e2..3f7d4da8c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanCondition.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanCondition.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowBooleanCondition build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowBooleanCondition build() { return new FlowActionFlowBooleanCondition( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanConditionParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanConditionParams.java index 43db6943a..aab092b2b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanConditionParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowBooleanConditionParams.java @@ -118,5 +118,15 @@ public Builder else_(List else_) { public FlowActionFlowBooleanConditionParams build() { return new FlowActionFlowBooleanConditionParams(then, else_, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlow.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlow.java index 3b6c984a9..3d7cc9ef7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlow.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlow.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowDelayFlow build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowDelayFlow build() { return new FlowActionFlowDelayFlow( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlowParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlowParams.java index ba1cb36c2..6a70692eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlowParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDelayFlowParams.java @@ -84,6 +84,10 @@ public interface NumberStage { public interface _FinalStage { FlowActionFlowDelayFlowParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage units(Optional units); _FinalStage units(FlowActionFlowDelayFlowParamsUnits units); @@ -131,5 +135,17 @@ public _FinalStage units(Optional units) { public FlowActionFlowDelayFlowParams build() { return new FlowActionFlowDelayFlowParams(number, units, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothing.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothing.java index 3823534b5..7680d7c36 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothing.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothing.java @@ -144,6 +144,10 @@ public interface ActionStage { public interface _FinalStage { FlowActionFlowDoNothing build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -272,5 +276,17 @@ public FlowActionFlowDoNothing build() { return new FlowActionFlowDoNothing( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothingParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothingParams.java index 35a08cb41..759695de6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothingParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowDoNothingParams.java @@ -55,5 +55,15 @@ public Builder from(FlowActionFlowDoNothingParams other) { public FlowActionFlowDoNothingParams build() { return new FlowActionFlowDoNothingParams(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessage.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessage.java index 124899924..b38081f3d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessage.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowErrorMessage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowErrorMessage build() { return new FlowActionFlowErrorMessage( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessageParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessageParams.java index 0628fae3e..3ea7f28de 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessageParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowErrorMessageParams.java @@ -70,6 +70,10 @@ public interface MessageStage { public interface _FinalStage { FlowActionFlowErrorMessageParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage message(@NotNull String message) { public FlowActionFlowErrorMessageParams build() { return new FlowActionFlowErrorMessageParams(message, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValue.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValue.java index d795d9c1f..f47dd50a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValue.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValue.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowMapValue build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowMapValue build() { return new FlowActionFlowMapValue( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValueParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValueParams.java index 850feaf73..2c82a8298 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValueParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowMapValueParams.java @@ -93,6 +93,10 @@ public interface InputStage { public interface _FinalStage { FlowActionFlowMapValueParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage cases(Optional> cases); _FinalStage cases(Map cases); @@ -160,5 +164,17 @@ public _FinalStage cases(Optional> cases) { public FlowActionFlowMapValueParams build() { return new FlowActionFlowMapValueParams(input, cases, fallback, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJson.java index d63a58006..aedd01f9b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowReturnJson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowReturnJson build() { return new FlowActionFlowReturnJson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJsonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJsonParams.java index c80f080fe..d3ea03608 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJsonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowReturnJsonParams.java @@ -71,6 +71,10 @@ public interface PayloadStage { public interface _FinalStage { FlowActionFlowReturnJsonParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage payload(@NotNull FlowActionFlowReturnJsonParamsPayload payloa public FlowActionFlowReturnJsonParams build() { return new FlowActionFlowReturnJsonParams(payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVars.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVars.java index c9edef5c3..caffc4d4d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVars.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVars.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionFlowStoreVars build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionFlowStoreVars build() { return new FlowActionFlowStoreVars( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVarsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVarsParams.java index 41ccaa29f..ea2a2ed35 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVarsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionFlowStoreVarsParams.java @@ -101,5 +101,15 @@ public Builder vars(String key, Object value) { public FlowActionFlowStoreVarsParams build() { return new FlowActionFlowStoreVarsParams(vars, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRow.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRow.java index 7d0da1d88..9797ab0f9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRow.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRow.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionGoogleSheetsAddRow build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionGoogleSheetsAddRow build() { return new FlowActionGoogleSheetsAddRow( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRowParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRowParams.java index 38924b194..55255da47 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRowParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionGoogleSheetsAddRowParams.java @@ -112,6 +112,10 @@ public interface SpreadsheetIdStage { public interface _FinalStage { FlowActionGoogleSheetsAddRowParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage sheetId(Optional sheetId); _FinalStage sheetId(FlowActionGoogleSheetsAddRowParamsSheetId sheetId); @@ -190,5 +194,17 @@ public FlowActionGoogleSheetsAddRowParams build() { return new FlowActionGoogleSheetsAddRowParams( connectionId, spreadsheetId, sheetId, values, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequest.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequest.java index e217ae638..b8957ba45 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequest.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionHttpSendRequest build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionHttpSendRequest build() { return new FlowActionHttpSendRequest( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParams.java index b239b21ff..09220e313 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParams.java @@ -154,6 +154,10 @@ public interface UrlStage { public interface _FinalStage { FlowActionHttpSendRequestParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage connectionId(Optional connectionId); _FinalStage connectionId(String connectionId); @@ -326,5 +330,17 @@ public FlowActionHttpSendRequestParams build() { return new FlowActionHttpSendRequestParams( connectionId, url, method, headers, basic, params, payload, contentType, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParamsBasicAuth.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParamsBasicAuth.java index fae9be90b..016c98d1f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParamsBasicAuth.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHttpSendRequestParamsBasicAuth.java @@ -115,5 +115,15 @@ public Builder password(String password) { public FlowActionHttpSendRequestParamsBasicAuth build() { return new FlowActionHttpSendRequestParamsBasicAuth(username, password, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContact.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContact.java index e38661cee..d6e8d50e6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContact.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContact.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionHubspotEnrollContact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionHubspotEnrollContact build() { return new FlowActionHubspotEnrollContact( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContactParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContactParams.java index aa2769440..32582bd19 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContactParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotEnrollContactParams.java @@ -101,6 +101,10 @@ public interface WorkflowIdStage { public interface _FinalStage { FlowActionHubspotEnrollContactParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -149,5 +153,17 @@ public _FinalStage workflowId(@NotNull FlowActionHubspotEnrollContactParamsWorkf public FlowActionHubspotEnrollContactParams build() { return new FlowActionHubspotEnrollContactParams(connectionId, email, workflowId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContact.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContact.java index 295c03df8..29196f96e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContact.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContact.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionHubspotGetContact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionHubspotGetContact build() { return new FlowActionHubspotGetContact( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContactParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContactParams.java index 40b575938..6f4ddab4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContactParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotGetContactParams.java @@ -83,6 +83,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionHubspotGetContactParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage email(@NotNull String email) { public FlowActionHubspotGetContactParams build() { return new FlowActionHubspotGetContactParams(connectionId, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContact.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContact.java index 1fb7f3dd2..98fd3be9b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContact.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContact.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionHubspotUpsertContact build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionHubspotUpsertContact build() { return new FlowActionHubspotUpsertContact( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParams.java index 8546cd868..87ebfc06e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParams.java @@ -101,6 +101,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionHubspotUpsertContactParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage properties(Optional> properties); _FinalStage properties(List properties); @@ -158,5 +162,17 @@ public _FinalStage properties(Optional additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParamsProperty.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParamsProperty.java index bb07959cb..79a1d9470 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParamsProperty.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionHubspotUpsertContactParamsProperty.java @@ -71,6 +71,10 @@ public interface PropertyStage { public interface _FinalStage { FlowActionHubspotUpsertContactParamsProperty build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage property(@NotNull String property) { public FlowActionHubspotUpsertContactParamsProperty build() { return new FlowActionHubspotUpsertContactParamsProperty(property, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJson.java index 35aaddc50..896fe1cdd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJsonCreateJson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJsonCreateJson build() { return new FlowActionJsonCreateJson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJsonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJsonParams.java index 0bd6dd71b..e19ff18ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJsonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonCreateJsonParams.java @@ -101,5 +101,15 @@ public Builder object(String key, Object value) { public FlowActionJsonCreateJsonParams build() { return new FlowActionJsonCreateJsonParams(object, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJson.java index fe5ac210c..62ed9bb40 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJsonParseJson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJsonParseJson build() { return new FlowActionJsonParseJson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJsonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJsonParams.java index 6f743bdff..28162e903 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJsonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonParseJsonParams.java @@ -70,6 +70,10 @@ public interface JsonStage { public interface _FinalStage { FlowActionJsonParseJsonParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage json(@NotNull String json) { public FlowActionJsonParseJsonParams build() { return new FlowActionJsonParseJsonParams(json, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJson.java index 2d2fbf4e1..2f0d22c0d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJsonSerializeJson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJsonSerializeJson build() { return new FlowActionJsonSerializeJson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJsonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJsonParams.java index 2bea64bc7..d26f30133 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJsonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJsonSerializeJsonParams.java @@ -71,6 +71,10 @@ public interface ObjectStage { public interface _FinalStage { FlowActionJsonSerializeJsonParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage object(@NotNull FlowActionJsonSerializeJsonParamsObject objec public FlowActionJsonSerializeJsonParams build() { return new FlowActionJsonSerializeJsonParams(object, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwt.java index 784d11115..8a7a03d36 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwt.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJwtDecodeJwt build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJwtDecodeJwt build() { return new FlowActionJwtDecodeJwt( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwtParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwtParams.java index 22f6e8c87..29e6e3c96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwtParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtDecodeJwtParams.java @@ -70,6 +70,10 @@ public interface TokenStage { public interface _FinalStage { FlowActionJwtDecodeJwtParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage token(@NotNull String token) { public FlowActionJwtDecodeJwtParams build() { return new FlowActionJwtDecodeJwtParams(token, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwt.java index 388e5dc6e..ca296d7fc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwt.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJwtSignJwt build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJwtSignJwt build() { return new FlowActionJwtSignJwt( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwtParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwtParams.java index 5ad501846..8bf215ff6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwtParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtSignJwtParams.java @@ -125,6 +125,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionJwtSignJwtParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage payload(Optional> payload); _FinalStage payload(Map payload); @@ -253,5 +257,17 @@ public FlowActionJwtSignJwtParams build() { return new FlowActionJwtSignJwtParams( connectionId, payload, subject, issuer, audience, expiresIn, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwt.java index 43db2a25a..4348488c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwt.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionJwtVerifyJwt build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionJwtVerifyJwt build() { return new FlowActionJwtVerifyJwt( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwtParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwtParams.java index 07475c20d..dc30d0a30 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwtParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionJwtVerifyJwtParams.java @@ -109,6 +109,10 @@ public interface TokenStage { public interface _FinalStage { FlowActionJwtVerifyJwtParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage audience(Optional audience); _FinalStage audience(String audience); @@ -186,5 +190,17 @@ public _FinalStage audience(Optional audience) { public FlowActionJwtVerifyJwtParams build() { return new FlowActionJwtVerifyJwtParams(connectionId, token, audience, issuer, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMember.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMember.java index 904c3ff70..65c3a6146 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMember.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMember.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionMailchimpUpsertMember build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionMailchimpUpsertMember build() { return new FlowActionMailchimpUpsertMember( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParams.java index c4bc155d1..73f29a92d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParams.java @@ -99,6 +99,10 @@ public interface MemberStage { public interface _FinalStage { FlowActionMailchimpUpsertMemberParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage member(@NotNull FlowActionMailchimpUpsertMemberParamsMember m public FlowActionMailchimpUpsertMemberParams build() { return new FlowActionMailchimpUpsertMemberParams(connectionId, listId, member, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParamsMember.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParamsMember.java index e69b9a8de..f6b9a0d2b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParamsMember.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailchimpUpsertMemberParamsMember.java @@ -100,6 +100,10 @@ public interface StatusIfNewStage { public interface _FinalStage { FlowActionMailchimpUpsertMemberParamsMember build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage mergeFields(Optional> mergeFields); _FinalStage mergeFields(Map mergeFields); @@ -158,5 +162,17 @@ public FlowActionMailchimpUpsertMemberParamsMember build() { return new FlowActionMailchimpUpsertMemberParamsMember( emailAddress, statusIfNew, mergeFields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmail.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmail.java index ebb267857..d51ce0c2b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmail.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionMailjetSendEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionMailjetSendEmail build() { return new FlowActionMailjetSendEmail( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsContent.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsContent.java index a6babc079..38351e222 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsContent.java @@ -71,6 +71,10 @@ public interface ContentStage { public interface _FinalStage { FlowActionMailjetSendEmailParamsContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage content(@NotNull String content) { public FlowActionMailjetSendEmailParamsContent build() { return new FlowActionMailjetSendEmailParamsContent(content, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsTemplateId.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsTemplateId.java index 271928a04..d1e8e26d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsTemplateId.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionMailjetSendEmailParamsTemplateId.java @@ -82,6 +82,10 @@ public interface TemplateIdStage { public interface _FinalStage { FlowActionMailjetSendEmailParamsTemplateId build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage variables(Optional> variables); _FinalStage variables(Map variables); @@ -129,5 +133,17 @@ public _FinalStage variables(Optional> variables) { public FlowActionMailjetSendEmailParamsTemplateId build() { return new FlowActionMailjetSendEmailParamsTemplateId(templateId, variables, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCode.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCode.java index 529d08b3f..c7ecb840a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCode.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionOtpGenerateCode build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionOtpGenerateCode build() { return new FlowActionOtpGenerateCode( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCodeParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCodeParams.java index dde8d51e0..c471e23d8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCodeParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpGenerateCodeParams.java @@ -82,6 +82,10 @@ public interface LengthStage { public interface _FinalStage { FlowActionOtpGenerateCodeParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage length(int length) { public FlowActionOtpGenerateCodeParams build() { return new FlowActionOtpGenerateCodeParams(reference, length, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCode.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCode.java index 13024d0a7..e673f7087 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCode.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionOtpVerifyCode build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionOtpVerifyCode build() { return new FlowActionOtpVerifyCode( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCodeParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCodeParams.java index c1640f8df..0de73f952 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCodeParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionOtpVerifyCodeParams.java @@ -83,6 +83,10 @@ public interface CodeStage { public interface _FinalStage { FlowActionOtpVerifyCodeParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage code(@NotNull FlowActionOtpVerifyCodeParamsCode code) { public FlowActionOtpVerifyCodeParams build() { return new FlowActionOtpVerifyCodeParams(reference, code, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDeal.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDeal.java index c39e9d874..e9be46272 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDeal.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDeal.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionPipedriveAddDeal build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionPipedriveAddDeal build() { return new FlowActionPipedriveAddDeal( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDealParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDealParams.java index 86d44f911..6bb27a0ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDealParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddDealParams.java @@ -157,6 +157,10 @@ public interface TitleStage { public interface _FinalStage { FlowActionPipedriveAddDealParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage value(Optional value); _FinalStage value(String value); @@ -323,5 +327,17 @@ public FlowActionPipedriveAddDealParams build() { fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganization.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganization.java index efa685eb0..a73f90081 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganization.java @@ -149,6 +149,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionPipedriveAddOrganization build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -267,5 +271,17 @@ public FlowActionPipedriveAddOrganization build() { return new FlowActionPipedriveAddOrganization( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganizationParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganizationParams.java index cd4e79869..a6a0c10f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganizationParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddOrganizationParams.java @@ -110,6 +110,10 @@ public interface NameStage { public interface _FinalStage { FlowActionPipedriveAddOrganizationParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage ownerId(Optional ownerId); _FinalStage ownerId(FlowActionPipedriveAddOrganizationParamsOwnerId ownerId); @@ -188,5 +192,17 @@ public FlowActionPipedriveAddOrganizationParams build() { return new FlowActionPipedriveAddOrganizationParams( connectionId, name, ownerId, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPerson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPerson.java index 2763a1a9a..a33c2897f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPerson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPerson.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionPipedriveAddPerson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionPipedriveAddPerson build() { return new FlowActionPipedriveAddPerson( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPersonParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPersonParams.java index 27226c9ca..414607c81 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPersonParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionPipedriveAddPersonParams.java @@ -141,6 +141,10 @@ public interface NameStage { public interface _FinalStage { FlowActionPipedriveAddPersonParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage email(Optional email); _FinalStage email(String email); @@ -279,5 +283,17 @@ public FlowActionPipedriveAddPersonParams build() { return new FlowActionPipedriveAddPersonParams( connectionId, name, email, phone, ownerId, organizationId, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLead.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLead.java index 645538f8d..479522f08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLead.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLead.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSalesforceCreateLead build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSalesforceCreateLead build() { return new FlowActionSalesforceCreateLead( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLeadParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLeadParams.java index 65a1ab1e4..d5023bf5d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLeadParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceCreateLeadParams.java @@ -145,6 +145,10 @@ public interface CompanyStage { public interface _FinalStage { FlowActionSalesforceCreateLeadParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage firstName(Optional firstName); _FinalStage firstName(String firstName); @@ -273,5 +277,17 @@ public FlowActionSalesforceCreateLeadParams build() { return new FlowActionSalesforceCreateLeadParams( connectionId, firstName, lastName, company, email, phone, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLead.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLead.java index 5b2b9ee42..c99ce4d77 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLead.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLead.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSalesforceGetLead build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSalesforceGetLead build() { return new FlowActionSalesforceGetLead( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLeadParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLeadParams.java index e6cd077ff..865d073b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLeadParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceGetLeadParams.java @@ -83,6 +83,10 @@ public interface LeadIdStage { public interface _FinalStage { FlowActionSalesforceGetLeadParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage leadId(@NotNull String leadId) { public FlowActionSalesforceGetLeadParams build() { return new FlowActionSalesforceGetLeadParams(connectionId, leadId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeads.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeads.java index 4108cfa49..87899c47b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeads.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeads.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSalesforceSearchLeads build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSalesforceSearchLeads build() { return new FlowActionSalesforceSearchLeads( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeadsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeadsParams.java index aedef7c4f..3feece474 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeadsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceSearchLeadsParams.java @@ -115,6 +115,10 @@ public interface SearchValueStage { public interface _FinalStage { FlowActionSalesforceSearchLeadsParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage leadFields(List leadFields); _FinalStage addLeadFields(String leadFields); @@ -196,5 +200,17 @@ public FlowActionSalesforceSearchLeadsParams build() { return new FlowActionSalesforceSearchLeadsParams( connectionId, searchField, searchValue, leadFields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLead.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLead.java index 59d38ff52..2801a5a72 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLead.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLead.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSalesforceUpdateLead build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSalesforceUpdateLead build() { return new FlowActionSalesforceUpdateLead( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLeadParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLeadParams.java index 1cbcaf10a..ffdf1f3e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLeadParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSalesforceUpdateLeadParams.java @@ -98,6 +98,10 @@ public interface LeadIdStage { public interface _FinalStage { FlowActionSalesforceUpdateLeadParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage payload(Optional> payload); _FinalStage payload(Map payload); @@ -155,5 +159,17 @@ public _FinalStage payload(Optional> payload) { public FlowActionSalesforceUpdateLeadParams build() { return new FlowActionSalesforceUpdateLeadParams(connectionId, leadId, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmail.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmail.java index 774a33e0e..2adb9a876 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmail.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSendgridSendEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSendgridSendEmail build() { return new FlowActionSendgridSendEmail( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParams.java index 6fed0ff60..b1397a0e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParams.java @@ -100,6 +100,10 @@ public interface FromStage { public interface _FinalStage { FlowActionSendgridSendEmailParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage personalizations(List personalizations); _FinalStage addPersonalizations(Object personalizations); @@ -170,5 +174,17 @@ public _FinalStage personalizations(List personalizations) { public FlowActionSendgridSendEmailParams build() { return new FlowActionSendgridSendEmailParams(connectionId, from, personalizations, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParamsPerson.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParamsPerson.java index 17c898bcd..9ebdf3a65 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParamsPerson.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSendgridSendEmailParamsPerson.java @@ -83,6 +83,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionSendgridSendEmailParamsPerson build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -130,5 +134,17 @@ public _FinalStage name(Optional name) { public FlowActionSendgridSendEmailParamsPerson build() { return new FlowActionSendgridSendEmailParamsPerson(name, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessage.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessage.java index bdeaea8a3..296ead471 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessage.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionSlackPostMessage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionSlackPostMessage build() { return new FlowActionSlackPostMessage( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParams.java index 06aa70c05..750c20abc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParams.java @@ -96,6 +96,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionSlackPostMessageParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage text(Optional text); _FinalStage text(String text); @@ -163,5 +167,17 @@ public _FinalStage text(Optional text) { public FlowActionSlackPostMessageParams build() { return new FlowActionSlackPostMessageParams(connectionId, text, attachments, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachment.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachment.java index ab9ae9bad..221ecc757 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachment.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachment.java @@ -167,5 +167,15 @@ public Builder fields(List fiel public FlowActionSlackPostMessageParamsAttachment build() { return new FlowActionSlackPostMessageParamsAttachment(color, pretext, text, fields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachmentField.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachmentField.java index 51cacf5ef..742d22bf3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachmentField.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionSlackPostMessageParamsAttachmentField.java @@ -91,6 +91,10 @@ public interface TitleStage { public interface _FinalStage { FlowActionSlackPostMessageParamsAttachmentField build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage value(Optional value); _FinalStage value(String value); @@ -158,5 +162,17 @@ public _FinalStage value(Optional value) { public FlowActionSlackPostMessageParamsAttachmentField build() { return new FlowActionSlackPostMessageParamsAttachmentField(title, value, short_, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxId.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxId.java index e22887a13..23df1d20e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxId.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxId.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeAddTaxId build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeAddTaxId build() { return new FlowActionStripeAddTaxId( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxIdParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxIdParams.java index dd86ca001..618d4be11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxIdParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddTaxIdParams.java @@ -114,6 +114,10 @@ public interface ValueStage { public interface _FinalStage { FlowActionStripeAddTaxIdParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -173,5 +177,17 @@ public _FinalStage value(@NotNull String value) { public FlowActionStripeAddTaxIdParams build() { return new FlowActionStripeAddTaxIdParams(connectionId, customerId, type, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddress.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddress.java index f4eabdc3b..11c5445b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddress.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeAddress.java @@ -213,5 +213,15 @@ public Builder country(String country) { public FlowActionStripeAddress build() { return new FlowActionStripeAddress(line1, line2, postalCode, city, state, country, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomer.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomer.java index 0197479b8..0ea0f38bc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomer.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomer.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeCreateCustomer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeCreateCustomer build() { return new FlowActionStripeCreateCustomer( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomerParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomerParams.java index bf853a780..afe104d64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomerParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreateCustomerParams.java @@ -165,6 +165,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionStripeCreateCustomerParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage taxId(Optional taxId); _FinalStage taxId(FlowActionStripeTaxId taxId); @@ -362,5 +366,17 @@ public FlowActionStripeCreateCustomerParams build() { metadata, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSession.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSession.java index 1d0eda5a1..0d6b3d01f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSession.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSession.java @@ -149,6 +149,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeCreatePortalSession build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -267,5 +271,17 @@ public FlowActionStripeCreatePortalSession build() { return new FlowActionStripeCreatePortalSession( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSessionParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSessionParams.java index 77748d777..56d389429 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSessionParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeCreatePortalSessionParams.java @@ -100,6 +100,10 @@ public interface CustomerIdStage { public interface _FinalStage { FlowActionStripeCreatePortalSessionParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage returnUrl(Optional returnUrl); _FinalStage returnUrl(String returnUrl); @@ -158,5 +162,17 @@ public FlowActionStripeCreatePortalSessionParams build() { return new FlowActionStripeCreatePortalSessionParams( connectionId, customerId, returnUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxId.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxId.java index f15b38b32..24e522fa5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxId.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxId.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeDeleteTaxId build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeDeleteTaxId build() { return new FlowActionStripeDeleteTaxId( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxIdParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxIdParams.java index f180442cf..ea9469f98 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxIdParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeDeleteTaxIdParams.java @@ -95,6 +95,10 @@ public interface IdStage { public interface _FinalStage { FlowActionStripeDeleteTaxIdParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -143,5 +147,17 @@ public _FinalStage id(@NotNull String id) { public FlowActionStripeDeleteTaxIdParams build() { return new FlowActionStripeDeleteTaxIdParams(connectionId, customerId, id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomers.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomers.java index f7042b976..665875984 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomers.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomers.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeFindCustomers build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeFindCustomers build() { return new FlowActionStripeFindCustomers( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomersParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomersParams.java index 3d72d5a63..aa4210bf2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomersParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeFindCustomersParams.java @@ -84,6 +84,10 @@ public interface EmailStage { public interface _FinalStage { FlowActionStripeFindCustomersParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage email(@NotNull String email) { public FlowActionStripeFindCustomersParams build() { return new FlowActionStripeFindCustomersParams(connectionId, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomer.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomer.java index c098931fd..e9b93716d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomer.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomer.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeGetCustomer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeGetCustomer build() { return new FlowActionStripeGetCustomer( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomerParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomerParams.java index 0964cf72c..b5dff975f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomerParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeGetCustomerParams.java @@ -83,6 +83,10 @@ public interface IdStage { public interface _FinalStage { FlowActionStripeGetCustomerParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage id(@NotNull String id) { public FlowActionStripeGetCustomerParams build() { return new FlowActionStripeGetCustomerParams(connectionId, id, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeTaxId.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeTaxId.java index 195ec6824..6a42281e4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeTaxId.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeTaxId.java @@ -82,6 +82,10 @@ public interface ValueStage { public interface _FinalStage { FlowActionStripeTaxId build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage value(@NotNull String value) { public FlowActionStripeTaxId build() { return new FlowActionStripeTaxId(type, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomer.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomer.java index e9c46e575..449d27336 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomer.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomer.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionStripeUpdateCustomer build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionStripeUpdateCustomer build() { return new FlowActionStripeUpdateCustomer( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomerParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomerParams.java index 8e48c2502..9fceb496f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomerParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionStripeUpdateCustomerParams.java @@ -169,6 +169,10 @@ public interface IdStage { public interface _FinalStage { FlowActionStripeUpdateCustomerParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage name(Optional name); _FinalStage name(String name); @@ -356,5 +360,17 @@ public FlowActionStripeUpdateCustomerParams build() { metadata, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessage.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessage.java index 830f7a3a0..de86eaf83 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessage.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionTelegramSendMessage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionTelegramSendMessage build() { return new FlowActionTelegramSendMessage( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessageParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessageParams.java index d33f13ad6..09e184e4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessageParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTelegramSendMessageParams.java @@ -96,6 +96,10 @@ public interface TextStage { public interface _FinalStage { FlowActionTelegramSendMessageParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage text(@NotNull String text) { public FlowActionTelegramSendMessageParams build() { return new FlowActionTelegramSendMessageParams(connectionId, chatId, text, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCall.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCall.java index 207c11380..df53347c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCall.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCall.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionTwilioMakeCall build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionTwilioMakeCall build() { return new FlowActionTwilioMakeCall( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCallParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCallParams.java index 8d4aa1b6c..933818566 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCallParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioMakeCallParams.java @@ -110,6 +110,10 @@ public interface PayloadStage { public interface _FinalStage { FlowActionTwilioMakeCallParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -168,5 +172,17 @@ public _FinalStage payload(@NotNull String payload) { public FlowActionTwilioMakeCallParams build() { return new FlowActionTwilioMakeCallParams(connectionId, from, to, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSms.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSms.java index 41f18328d..71f442ad7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSms.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionTwilioSendSms build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionTwilioSendSms build() { return new FlowActionTwilioSendSms( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSmsParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSmsParams.java index 0cce55f3c..524c6fd74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSmsParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionTwilioSendSmsParams.java @@ -110,6 +110,10 @@ public interface MessageStage { public interface _FinalStage { FlowActionTwilioSendSmsParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -168,5 +172,17 @@ public _FinalStage message(@NotNull String message) { public FlowActionTwilioSendSmsParams build() { return new FlowActionTwilioSendSmsParams(connectionId, from, to, message, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessage.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessage.java index e421ed462..ebbf447e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessage.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionWhatsappSendMessage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionWhatsappSendMessage build() { return new FlowActionWhatsappSendMessage( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessageParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessageParams.java index 18fd44671..4f6d09c50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessageParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionWhatsappSendMessageParams.java @@ -129,6 +129,10 @@ public interface PayloadStage { public interface _FinalStage { FlowActionWhatsappSendMessageParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -199,5 +203,17 @@ public FlowActionWhatsappSendMessageParams build() { return new FlowActionWhatsappSendMessageParams( connectionId, senderId, recipientNumber, type, payload, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXml.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXml.java index da78abd17..b6d2cacc1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXml.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXml.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionXmlParseXml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionXmlParseXml build() { return new FlowActionXmlParseXml( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXmlParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXmlParams.java index 9c97b5312..9420bf1ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXmlParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlParseXmlParams.java @@ -70,6 +70,10 @@ public interface XmlStage { public interface _FinalStage { FlowActionXmlParseXmlParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage xml(@NotNull String xml) { public FlowActionXmlParseXmlParams build() { return new FlowActionXmlParseXmlParams(xml, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXml.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXml.java index 2d5a8d556..f5891e82c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXml.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXml.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionXmlSerializeXml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionXmlSerializeXml build() { return new FlowActionXmlSerializeXml( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXmlParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXmlParams.java index f061b36a6..7b82a9894 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXmlParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionXmlSerializeXmlParams.java @@ -71,6 +71,10 @@ public interface ObjectStage { public interface _FinalStage { FlowActionXmlSerializeXmlParams build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage object(@NotNull FlowActionXmlSerializeXmlParamsObject object) public FlowActionXmlSerializeXmlParams build() { return new FlowActionXmlSerializeXmlParams(object, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhook.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhook.java index aee497b88..478d143e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhook.java @@ -148,6 +148,10 @@ public interface ParamsStage { public interface _FinalStage { FlowActionZapierTriggerWebhook build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -266,5 +270,17 @@ public FlowActionZapierTriggerWebhook build() { return new FlowActionZapierTriggerWebhook( id, alias, type, action, allowFailure, maskOutput, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhookParams.java b/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhookParams.java index 1a30886e3..59042adc3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhookParams.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowActionZapierTriggerWebhookParams.java @@ -85,6 +85,10 @@ public interface ConnectionIdStage { public interface _FinalStage { FlowActionZapierTriggerWebhookParams build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage method(Optional method); _FinalStage method(FlowActionZapierTriggerWebhookParamsMethod method); @@ -132,5 +136,17 @@ public _FinalStage method(Optional m public FlowActionZapierTriggerWebhookParams build() { return new FlowActionZapierTriggerWebhookParams(connectionId, method, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java b/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java index 0f85945d1..337c9f3f5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowExecutionSummary.java @@ -209,6 +209,10 @@ public interface UpdatedAtStage { public interface _FinalStage { FlowExecutionSummary build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Journey id

    */ @@ -393,5 +397,17 @@ public FlowExecutionSummary build() { return new FlowExecutionSummary( id, traceId, journeyId, status, createdAt, updatedAt, startedAt, endedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowSummary.java b/src/main/java/com/auth0/client/mgmt/types/FlowSummary.java index ad5d7050b..cb1e6c1cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowSummary.java @@ -128,6 +128,10 @@ public interface UpdatedAtStage { public interface _FinalStage { FlowSummary build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage executedAt(Optional executedAt); _FinalStage executedAt(String executedAt); @@ -205,5 +209,17 @@ public _FinalStage executedAt(Optional executedAt) { public FlowSummary build() { return new FlowSummary(id, name, createdAt, updatedAt, executedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKey.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKey.java index 354c61ffd..dd5cd6321 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKey.java @@ -83,6 +83,10 @@ public interface ApiKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage apiKey(@NotNull String apiKey) { public FlowsVaultConnectioSetupApiKey build() { return new FlowsVaultConnectioSetupApiKey(type, apiKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKeyWithBaseUrl.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKeyWithBaseUrl.java index c70109703..6eb249cd7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKeyWithBaseUrl.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupApiKeyWithBaseUrl.java @@ -99,6 +99,10 @@ public interface BaseUrlStage { public interface _FinalStage { FlowsVaultConnectioSetupApiKeyWithBaseUrl build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage baseUrl(@NotNull String baseUrl) { public FlowsVaultConnectioSetupApiKeyWithBaseUrl build() { return new FlowsVaultConnectioSetupApiKeyWithBaseUrl(type, apiKey, baseUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupBigqueryOauthJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupBigqueryOauthJwt.java index 073ee9fd1..42cf1e1f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupBigqueryOauthJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupBigqueryOauthJwt.java @@ -167,5 +167,15 @@ public FlowsVaultConnectioSetupBigqueryOauthJwt build() { return new FlowsVaultConnectioSetupBigqueryOauthJwt( type, projectId, privateKey, clientEmail, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupHttpBearer.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupHttpBearer.java index 9164e4ff5..efc891cfd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupHttpBearer.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupHttpBearer.java @@ -84,6 +84,10 @@ public interface TokenStage { public interface _FinalStage { FlowsVaultConnectioSetupHttpBearer build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage token(@NotNull String token) { public FlowsVaultConnectioSetupHttpBearer build() { return new FlowsVaultConnectioSetupHttpBearer(type, token, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupJwt.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupJwt.java index 729e31b10..8793506b5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupJwt.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupJwt.java @@ -85,6 +85,10 @@ public interface AlgorithmStage { public interface _FinalStage { FlowsVaultConnectioSetupJwt build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage algorithm(@NotNull FlowsVaultConnectioSetupJwtAlgorithmEnum a public FlowsVaultConnectioSetupJwt build() { return new FlowsVaultConnectioSetupJwt(type, algorithm, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupMailjetApiKey.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupMailjetApiKey.java index b356f3cfa..acc0d6147 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupMailjetApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupMailjetApiKey.java @@ -99,6 +99,10 @@ public interface SecretKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupMailjetApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage secretKey(@NotNull String secretKey) { public FlowsVaultConnectioSetupMailjetApiKey build() { return new FlowsVaultConnectioSetupMailjetApiKey(type, apiKey, secretKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthApp.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthApp.java index a877c37de..3385e9d7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthApp.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthApp.java @@ -127,6 +127,10 @@ public interface DomainStage { public interface _FinalStage { FlowsVaultConnectioSetupOauthApp build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage audience(Optional audience); _FinalStage audience(String audience); @@ -205,5 +209,17 @@ public FlowsVaultConnectioSetupOauthApp build() { return new FlowsVaultConnectioSetupOauthApp( type, clientId, clientSecret, domain, audience, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthCode.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthCode.java index b130fead4..7066bd202 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthCode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupOauthCode.java @@ -116,5 +116,15 @@ public Builder code(String code) { public FlowsVaultConnectioSetupOauthCode build() { return new FlowsVaultConnectioSetupOauthCode(type, code, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupSecretApiKey.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupSecretApiKey.java index 1e7d81846..b0726829b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupSecretApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupSecretApiKey.java @@ -84,6 +84,10 @@ public interface SecretKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupSecretApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -122,5 +126,17 @@ public _FinalStage secretKey(@NotNull String secretKey) { public FlowsVaultConnectioSetupSecretApiKey build() { return new FlowsVaultConnectioSetupSecretApiKey(type, secretKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupStripeKeyPair.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupStripeKeyPair.java index 0c8751940..218e1a4ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupStripeKeyPair.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupStripeKeyPair.java @@ -99,6 +99,10 @@ public interface PublicKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupStripeKeyPair build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage publicKey(@NotNull String publicKey) { public FlowsVaultConnectioSetupStripeKeyPair build() { return new FlowsVaultConnectioSetupStripeKeyPair(type, privateKey, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupToken.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupToken.java index 39c9aee83..c37327f29 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupToken.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupToken.java @@ -83,6 +83,10 @@ public interface TokenStage { public interface _FinalStage { FlowsVaultConnectioSetupToken build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage token(@NotNull String token) { public FlowsVaultConnectioSetupToken build() { return new FlowsVaultConnectioSetupToken(type, token, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupTwilioApiKey.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupTwilioApiKey.java index fbdb08489..d03c14c98 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupTwilioApiKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupTwilioApiKey.java @@ -99,6 +99,10 @@ public interface ApiKeyStage { public interface _FinalStage { FlowsVaultConnectioSetupTwilioApiKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public _FinalStage apiKey(@NotNull String apiKey) { public FlowsVaultConnectioSetupTwilioApiKey build() { return new FlowsVaultConnectioSetupTwilioApiKey(type, accountId, apiKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupWebhook.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupWebhook.java index 8d2c5c857..007062ff3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupWebhook.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectioSetupWebhook.java @@ -83,6 +83,10 @@ public interface UrlStage { public interface _FinalStage { FlowsVaultConnectioSetupWebhook build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage url(@NotNull String url) { public FlowsVaultConnectioSetupWebhook build() { return new FlowsVaultConnectioSetupWebhook(type, url, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpApiKeySetup.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpApiKeySetup.java index 3e593b907..b4472b21a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpApiKeySetup.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpApiKeySetup.java @@ -112,6 +112,10 @@ public interface InStage { public interface _FinalStage { FlowsVaultConnectionHttpApiKeySetup build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -170,5 +174,17 @@ public _FinalStage in(@NotNull FlowsVaultConnectionHttpApiKeySetupInEnum in) { public FlowsVaultConnectionHttpApiKeySetup build() { return new FlowsVaultConnectionHttpApiKeySetup(type, name, value, in, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpBasicAuthSetup.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpBasicAuthSetup.java index 82ec482d5..d9c50d069 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpBasicAuthSetup.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpBasicAuthSetup.java @@ -98,6 +98,10 @@ public interface UsernameStage { public interface _FinalStage { FlowsVaultConnectionHttpBasicAuthSetup build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage password(Optional password); _FinalStage password(String password); @@ -155,5 +159,17 @@ public _FinalStage password(Optional password) { public FlowsVaultConnectionHttpBasicAuthSetup build() { return new FlowsVaultConnectionHttpBasicAuthSetup(type, username, password, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpOauthClientCredentialsSetup.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpOauthClientCredentialsSetup.java index 83c55fb09..56ba64250 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpOauthClientCredentialsSetup.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionHttpOauthClientCredentialsSetup.java @@ -155,6 +155,10 @@ public interface TokenEndpointStage { public interface _FinalStage { FlowsVaultConnectionHttpOauthClientCredentialsSetup build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage audience(Optional audience); _FinalStage audience(String audience); @@ -274,5 +278,17 @@ public FlowsVaultConnectionHttpOauthClientCredentialsSetup build() { return new FlowsVaultConnectionHttpOauthClientCredentialsSetup( type, clientId, clientSecret, tokenEndpoint, audience, resource, scope, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java index 5aad48008..ae3c4a6ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FlowsVaultConnectionSummary.java @@ -231,6 +231,10 @@ public interface FingerprintStage { public interface _FinalStage { FlowsVaultConnectionSummary build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Flows Vault Connection custom account name.

    */ @@ -426,5 +430,17 @@ public FlowsVaultConnectionSummary build() { fingerprint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockDivider.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockDivider.java index 796a042ed..589f3cd4a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockDivider.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockDivider.java @@ -113,6 +113,10 @@ public interface TypeStage { public interface _FinalStage { FormBlockDivider build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormBlockDividerConfig config); @@ -180,5 +184,17 @@ public _FinalStage config(Optional config) { public FormBlockDivider build() { return new FormBlockDivider(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockDividerConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockDividerConfig.java index a5183c3a3..72d562d44 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockDividerConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockDividerConfig.java @@ -91,5 +91,15 @@ public Builder text(String text) { public FormBlockDividerConfig build() { return new FormBlockDividerConfig(text, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockHtml.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockHtml.java index 5852cc83d..49c87f734 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockHtml.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockHtml.java @@ -113,6 +113,10 @@ public interface TypeStage { public interface _FinalStage { FormBlockHtml build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormBlockHtmlConfig config); @@ -180,5 +184,17 @@ public _FinalStage config(Optional config) { public FormBlockHtml build() { return new FormBlockHtml(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockHtmlConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockHtmlConfig.java index 1a3622c5e..428c065b8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockHtmlConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockHtmlConfig.java @@ -91,5 +91,15 @@ public Builder content(String content) { public FormBlockHtmlConfig build() { return new FormBlockHtmlConfig(content, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockImage.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockImage.java index 599a369e8..4c308d325 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockImage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockImage.java @@ -113,6 +113,10 @@ public interface TypeStage { public interface _FinalStage { FormBlockImage build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormBlockImageConfig config); @@ -180,5 +184,17 @@ public _FinalStage config(Optional config) { public FormBlockImage build() { return new FormBlockImage(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockImageConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockImageConfig.java index 88372a4b3..00b669aef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockImageConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockImageConfig.java @@ -93,6 +93,10 @@ public interface SrcStage { public interface _FinalStage { FormBlockImageConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage position(Optional position); _FinalStage position(FormBlockImageConfigPositionEnum position); @@ -160,5 +164,17 @@ public _FinalStage position(Optional position) public FormBlockImageConfig build() { return new FormBlockImageConfig(src, position, height, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButton.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButton.java index 80e37187e..691203c50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButton.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButton.java @@ -114,6 +114,10 @@ public interface ConfigStage { public interface _FinalStage { FormBlockJumpButton build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public _FinalStage config(@NotNull FormBlockJumpButtonConfig config) { public FormBlockJumpButton build() { return new FormBlockJumpButton(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfig.java index 9f6282db1..773d2f2e4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfig.java @@ -97,6 +97,10 @@ public interface NextNodeStage { public interface _FinalStage { FormBlockJumpButtonConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage style(Optional style); _FinalStage style(FormBlockJumpButtonConfigStyle style); @@ -154,5 +158,17 @@ public _FinalStage style(Optional style) { public FormBlockJumpButtonConfig build() { return new FormBlockJumpButtonConfig(text, nextNode, style, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfigStyle.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfigStyle.java index ffd730672..fc3905efb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfigStyle.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockJumpButtonConfigStyle.java @@ -91,5 +91,15 @@ public Builder backgroundColor(String backgroundColor) { public FormBlockJumpButtonConfigStyle build() { return new FormBlockJumpButtonConfigStyle(backgroundColor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButton.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButton.java index 43353c004..8b1a935fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButton.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButton.java @@ -114,6 +114,10 @@ public interface ConfigStage { public interface _FinalStage { FormBlockNextButton build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public _FinalStage config(@NotNull FormBlockNextButtonConfig config) { public FormBlockNextButton build() { return new FormBlockNextButton(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButtonConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButtonConfig.java index 6d24c23bf..5bfdde9aa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButtonConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockNextButtonConfig.java @@ -70,6 +70,10 @@ public interface TextStage { public interface _FinalStage { FormBlockNextButtonConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage text(@NotNull String text) { public FormBlockNextButtonConfig build() { return new FormBlockNextButtonConfig(text, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButton.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButton.java index 15cd22082..0209cfd33 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButton.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButton.java @@ -114,6 +114,10 @@ public interface ConfigStage { public interface _FinalStage { FormBlockPreviousButton build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public _FinalStage config(@NotNull FormBlockPreviousButtonConfig config) { public FormBlockPreviousButton build() { return new FormBlockPreviousButton(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButtonConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButtonConfig.java index 60fb63e51..7f1a1308e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButtonConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockPreviousButtonConfig.java @@ -70,6 +70,10 @@ public interface TextStage { public interface _FinalStage { FormBlockPreviousButtonConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage text(@NotNull String text) { public FormBlockPreviousButtonConfig build() { return new FormBlockPreviousButtonConfig(text, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButton.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButton.java index 1c0e5fb2d..dea9f4e95 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButton.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButton.java @@ -114,6 +114,10 @@ public interface ConfigStage { public interface _FinalStage { FormBlockResendButton build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -172,5 +176,17 @@ public _FinalStage config(@NotNull FormBlockResendButtonConfig config) { public FormBlockResendButton build() { return new FormBlockResendButton(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButtonConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButtonConfig.java index d899c55c3..ad8450c1b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButtonConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockResendButtonConfig.java @@ -154,6 +154,10 @@ public interface FlowIdStage { public interface _FinalStage { FormBlockResendButtonConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage textAlignment(Optional textAlignment); _FinalStage textAlignment(FormBlockResendButtonConfigTextAlignmentEnum textAlignment); @@ -280,5 +284,17 @@ public FormBlockResendButtonConfig build() { waitingTime, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockRichText.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockRichText.java index 03b4745a5..0f22c3e34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockRichText.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockRichText.java @@ -113,6 +113,10 @@ public interface TypeStage { public interface _FinalStage { FormBlockRichText build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormBlockRichTextConfig config); @@ -180,5 +184,17 @@ public _FinalStage config(Optional config) { public FormBlockRichText build() { return new FormBlockRichText(id, category, type, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormBlockRichTextConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormBlockRichTextConfig.java index a4986d07b..d730ad4ca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormBlockRichTextConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormBlockRichTextConfig.java @@ -91,5 +91,15 @@ public Builder content(String content) { public FormBlockRichTextConfig build() { return new FormBlockRichTextConfig(content, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormEndingNode.java b/src/main/java/com/auth0/client/mgmt/types/FormEndingNode.java index e6e50def2..db348065f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormEndingNode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormEndingNode.java @@ -165,5 +165,15 @@ public Builder resumeFlow(Boolean resumeFlow) { public FormEndingNode build() { return new FormEndingNode(redirection, afterSubmit, coordinates, resumeFlow, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeAfterSubmit.java b/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeAfterSubmit.java index 9cb34292c..398be08a9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeAfterSubmit.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeAfterSubmit.java @@ -91,5 +91,15 @@ public Builder flowId(String flowId) { public FormEndingNodeAfterSubmit build() { return new FormEndingNodeAfterSubmit(flowId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeRedirection.java b/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeRedirection.java index c7f3601f3..d8ffcd9c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeRedirection.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormEndingNodeRedirection.java @@ -82,6 +82,10 @@ public interface TargetStage { public interface _FinalStage { FormEndingNodeRedirection build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage delay(Optional delay); _FinalStage delay(Integer delay); @@ -129,5 +133,17 @@ public _FinalStage delay(Optional delay) { public FormEndingNodeRedirection build() { return new FormEndingNodeRedirection(delay, target, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldBoolean.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldBoolean.java index 316f02a87..eac8a1410 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldBoolean.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldBoolean.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldBoolean build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldBoolean build() { return new FormFieldBoolean( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfig.java index 6901ba78e..132f726db 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfig.java @@ -116,5 +116,15 @@ public Builder options(FormFieldBooleanConfigOptions options) { public FormFieldBooleanConfig build() { return new FormFieldBooleanConfig(defaultValue, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfigOptions.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfigOptions.java index 4303222fc..7ffed4dd4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfigOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldBooleanConfigOptions.java @@ -114,5 +114,15 @@ public Builder false_(String false_) { public FormFieldBooleanConfigOptions build() { return new FormFieldBooleanConfigOptions(true_, false_, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCards.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCards.java index 3c7c1a698..ecdbed051 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCards.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCards.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldCards build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldCardsConfig config); @@ -302,5 +306,17 @@ public FormFieldCards build() { return new FormFieldCards( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfig.java index a526bc8b9..987a77aa3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfig.java @@ -140,5 +140,15 @@ public Builder options(List options) { public FormFieldCardsConfig build() { return new FormFieldCardsConfig(hideLabels, multiple, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfigOption.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfigOption.java index e85a6ccea..1265cab26 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfigOption.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCardsConfigOption.java @@ -95,6 +95,10 @@ public interface ImageUrlStage { public interface _FinalStage { FormFieldCardsConfigOption build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -143,5 +147,17 @@ public _FinalStage imageUrl(@NotNull String imageUrl) { public FormFieldCardsConfigOption build() { return new FormFieldCardsConfigOption(value, label, imageUrl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoice.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoice.java index 6d6e9197e..0620b6e18 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoice.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoice.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldChoice build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldChoiceConfig config); @@ -302,5 +306,17 @@ public FormFieldChoice build() { return new FormFieldChoice( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfig.java index 181bab370..ae0f258cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfig.java @@ -140,5 +140,15 @@ public Builder allowOther(FormFieldChoiceConfigAllowOther allowOther) { public FormFieldChoiceConfig build() { return new FormFieldChoiceConfig(multiple, options, allowOther, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigAllowOther.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigAllowOther.java index 49c6d7e81..6ef1dcd9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigAllowOther.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigAllowOther.java @@ -139,5 +139,15 @@ public Builder placeholder(String placeholder) { public FormFieldChoiceConfigAllowOther build() { return new FormFieldChoiceConfigAllowOther(enabled, label, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigOption.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigOption.java index a7b0cf35b..fdfbb2755 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigOption.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldChoiceConfigOption.java @@ -82,6 +82,10 @@ public interface LabelStage { public interface _FinalStage { FormFieldChoiceConfigOption build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage label(@NotNull String label) { public FormFieldChoiceConfigOption build() { return new FormFieldChoiceConfigOption(value, label, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCustom.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCustom.java index 7ea82eb7f..e1483a137 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCustom.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldCustom build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldCustom build() { return new FormFieldCustom( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldCustomConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldCustomConfig.java index 721e611c7..f174c530d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldCustomConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldCustomConfig.java @@ -106,6 +106,10 @@ public interface CodeStage { public interface _FinalStage { FormFieldCustomConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage schema(Map schema); _FinalStage putAllSchema(Map schema); @@ -206,5 +210,17 @@ public _FinalStage schema(Map schema) { public FormFieldCustomConfig build() { return new FormFieldCustomConfig(schema, code, css, params, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDate.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDate.java index 3bfc154f0..f580c85e6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDate.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDate.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldDate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldDate build() { return new FormFieldDate( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDateConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDateConfig.java index 11f4bdb32..407b42b2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDateConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDateConfig.java @@ -116,5 +116,15 @@ public Builder defaultValue(String defaultValue) { public FormFieldDateConfig build() { return new FormFieldDateConfig(format, defaultValue, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdown.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdown.java index 1596665ec..355130561 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdown.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdown.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldDropdown build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldDropdownConfig config); @@ -302,5 +306,17 @@ public FormFieldDropdown build() { return new FormFieldDropdown( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfig.java index 5a1efa85e..eeb4dbd2d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfig.java @@ -142,5 +142,15 @@ public Builder placeholder(String placeholder) { public FormFieldDropdownConfig build() { return new FormFieldDropdownConfig(multiple, options, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfigOption.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfigOption.java index 49965c866..6a6cd20ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfigOption.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldDropdownConfigOption.java @@ -82,6 +82,10 @@ public interface LabelStage { public interface _FinalStage { FormFieldDropdownConfigOption build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage label(@NotNull String label) { public FormFieldDropdownConfigOption build() { return new FormFieldDropdownConfigOption(value, label, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldEmail.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldEmail.java index 6adb0a4bf..e87ab2ec7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldEmail.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldEmail build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldEmailConfig config); @@ -302,5 +306,17 @@ public FormFieldEmail build() { return new FormFieldEmail( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldEmailConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldEmailConfig.java index 6cf5817fe..05d5e7f50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldEmailConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldEmailConfig.java @@ -114,5 +114,15 @@ public Builder placeholder(String placeholder) { public FormFieldEmailConfig build() { return new FormFieldEmailConfig(defaultValue, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldFile.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldFile.java index 270c8cbb3..a5300a19c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldFile.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldFile.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldFile build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldFileConfig config); @@ -302,5 +306,17 @@ public FormFieldFile build() { return new FormFieldFile( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfig.java index 29a77e1e3..f0afdd991 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfig.java @@ -215,5 +215,15 @@ public FormFieldFileConfig build() { return new FormFieldFileConfig( multiple, storage, categories, extensions, maxSize, maxFiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfigStorage.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfigStorage.java index 56854c2b6..a43de538e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfigStorage.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldFileConfigStorage.java @@ -71,6 +71,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldFileConfigStorage build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage type(@NotNull FormFieldFileConfigStorageTypeEnum type) { public FormFieldFileConfigStorage build() { return new FormFieldFileConfigStorage(type, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldLegal.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldLegal.java index c25dff2e1..cb31941ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldLegal.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldLegal.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldLegal build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldLegalConfig config); @@ -302,5 +306,17 @@ public FormFieldLegal build() { return new FormFieldLegal( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldLegalConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldLegalConfig.java index 482a6c4d0..05e6d2bec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldLegalConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldLegalConfig.java @@ -91,5 +91,15 @@ public Builder text(String text) { public FormFieldLegalConfig build() { return new FormFieldLegalConfig(text, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldNumber.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldNumber.java index 5da57da10..d83eb1f13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldNumber.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldNumber.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldNumber build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldNumberConfig config); @@ -302,5 +306,17 @@ public FormFieldNumber build() { return new FormFieldNumber( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldNumberConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldNumberConfig.java index 3f25a6c1a..69ea60cf6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldNumberConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldNumberConfig.java @@ -165,5 +165,15 @@ public Builder maxValue(Double maxValue) { public FormFieldNumberConfig build() { return new FormFieldNumberConfig(defaultValue, placeholder, minValue, maxValue, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPassword.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPassword.java index c680e7cb2..5bf3805e8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPassword.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPassword.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldPassword build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldPassword build() { return new FormFieldPassword( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPasswordConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPasswordConfig.java index 9c0a9a4dc..1430d8746 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPasswordConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPasswordConfig.java @@ -245,5 +245,15 @@ public FormFieldPasswordConfig build() { return new FormFieldPasswordConfig( hash, placeholder, minLength, maxLength, complexity, nist, strengthMeter, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPayment.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPayment.java index 46773133e..7b087b87a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPayment.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPayment.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormFieldPayment build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormFieldPayment build() { return new FormFieldPayment( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfig.java index e39c92cca..e8b44d902 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfig.java @@ -119,6 +119,10 @@ public interface CredentialsStage { public interface _FinalStage { FormFieldPaymentConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage provider(Optional provider); _FinalStage provider(FormFieldPaymentConfigProviderEnum provider); @@ -216,5 +220,17 @@ public _FinalStage provider(Optional provide public FormFieldPaymentConfig build() { return new FormFieldPaymentConfig(provider, charge, credentials, customer, fields, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOff.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOff.java index 8eab8f260..3aa69b5e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOff.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOff.java @@ -86,6 +86,10 @@ public interface OneOffStage { public interface _FinalStage { FormFieldPaymentConfigChargeOneOff build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -124,5 +128,17 @@ public _FinalStage oneOff(@NotNull FormFieldPaymentConfigChargeOneOffOneOff oneO public FormFieldPaymentConfigChargeOneOff build() { return new FormFieldPaymentConfigChargeOneOff(type, oneOff, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOffOneOff.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOffOneOff.java index fec664046..1278a918c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOffOneOff.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeOneOffOneOff.java @@ -86,6 +86,10 @@ public interface CurrencyStage { public interface _FinalStage { FormFieldPaymentConfigChargeOneOffOneOff build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -124,5 +128,17 @@ public _FinalStage currency(@NotNull FormFieldPaymentConfigChargeOneOffCurrencyE public FormFieldPaymentConfigChargeOneOffOneOff build() { return new FormFieldPaymentConfigChargeOneOffOneOff(amount, currency, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeSubscription.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeSubscription.java index 2f4aeb76e..019f2dcf5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeSubscription.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigChargeSubscription.java @@ -85,6 +85,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldPaymentConfigChargeSubscription build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage subscription(Map subscription); _FinalStage putAllSubscription(Map subscription); @@ -145,5 +149,17 @@ public _FinalStage subscription(Map subscription) { public FormFieldPaymentConfigChargeSubscription build() { return new FormFieldPaymentConfigChargeSubscription(type, subscription, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigCredentials.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigCredentials.java index 4bfc3ba15..fdbc395f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigCredentials.java @@ -83,6 +83,10 @@ public interface PrivateKeyStage { public interface _FinalStage { FormFieldPaymentConfigCredentials build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -121,5 +125,17 @@ public _FinalStage privateKey(@NotNull String privateKey) { public FormFieldPaymentConfigCredentials build() { return new FormFieldPaymentConfigCredentials(publicKey, privateKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFieldProperties.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFieldProperties.java index e60ac1a8c..ce73936c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFieldProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFieldProperties.java @@ -115,5 +115,15 @@ public Builder placeholder(String placeholder) { public FormFieldPaymentConfigFieldProperties build() { return new FormFieldPaymentConfigFieldProperties(label, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFields.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFields.java index cf2cae117..6e3562c6f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFields.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldPaymentConfigFields.java @@ -166,5 +166,15 @@ public FormFieldPaymentConfigFields build() { return new FormFieldPaymentConfigFields( cardNumber, expirationDate, securityCode, trustmarks, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldSocial.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldSocial.java index 9cc8337a4..e32bf9440 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldSocial.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldSocial.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldSocial build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldSocialConfig config); @@ -302,5 +306,17 @@ public FormFieldSocial build() { return new FormFieldSocial( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldSocialConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldSocialConfig.java index 8148ad2df..13effceb6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldSocialConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldSocialConfig.java @@ -55,5 +55,15 @@ public Builder from(FormFieldSocialConfig other) { public FormFieldSocialConfig build() { return new FormFieldSocialConfig(additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldTel.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldTel.java index 656d52c18..1101c6384 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldTel.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldTel.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldTel build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldTelConfig config); @@ -301,5 +305,17 @@ public _FinalStage config(Optional config) { public FormFieldTel build() { return new FormFieldTel(id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfig.java index 850208153..768703a48 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfig.java @@ -215,5 +215,15 @@ public FormFieldTelConfig build() { return new FormFieldTelConfig( defaultValue, placeholder, minLength, maxLength, countryPicker, strings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfigStrings.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfigStrings.java index b142adc2f..64165d58b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfigStrings.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldTelConfigStrings.java @@ -91,5 +91,15 @@ public Builder filterPlaceholder(String filterPlaceholder) { public FormFieldTelConfigStrings build() { return new FormFieldTelConfigStrings(filterPlaceholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldText.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldText.java index 7c1b0458b..e34f7bbb5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldText.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldText.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldText build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldTextConfig config); @@ -302,5 +306,17 @@ public FormFieldText build() { return new FormFieldText( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldTextConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldTextConfig.java index 18acecdba..3206f6642 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldTextConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldTextConfig.java @@ -190,5 +190,15 @@ public FormFieldTextConfig build() { return new FormFieldTextConfig( multiline, defaultValue, placeholder, minLength, maxLength, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldUrl.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldUrl.java index 6e84e9825..ad19c724d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldUrl.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldUrl.java @@ -154,6 +154,10 @@ public interface TypeStage { public interface _FinalStage { FormFieldUrl build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage config(Optional config); _FinalStage config(FormFieldUrlConfig config); @@ -301,5 +305,17 @@ public _FinalStage config(Optional config) { public FormFieldUrl build() { return new FormFieldUrl(id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFieldUrlConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFieldUrlConfig.java index 3ade6fdbd..69c811484 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFieldUrlConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFieldUrlConfig.java @@ -114,5 +114,15 @@ public Builder placeholder(String placeholder) { public FormFieldUrlConfig build() { return new FormFieldUrlConfig(defaultValue, placeholder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFlow.java b/src/main/java/com/auth0/client/mgmt/types/FormFlow.java index a6edf66e4..77901e71a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFlow.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFlow.java @@ -123,6 +123,10 @@ public interface ConfigStage { public interface _FinalStage { FormFlow build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage coordinates(Optional coordinates); _FinalStage coordinates(FormNodeCoordinates coordinates); @@ -210,5 +214,17 @@ public _FinalStage coordinates(Optional coordinates) { public FormFlow build() { return new FormFlow(id, type, coordinates, alias, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormFlowConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormFlowConfig.java index 27e810319..ca818ed45 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormFlowConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormFlowConfig.java @@ -82,6 +82,10 @@ public interface FlowIdStage { public interface _FinalStage { FormFlowConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage nextNode(Optional nextNode); _FinalStage nextNode(FormNodePointer nextNode); @@ -129,5 +133,17 @@ public _FinalStage nextNode(Optional nextNode) { public FormFlowConfig build() { return new FormFlowConfig(flowId, nextNode, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormHiddenField.java b/src/main/java/com/auth0/client/mgmt/types/FormHiddenField.java index 04a0f3ec3..b5f180c38 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormHiddenField.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormHiddenField.java @@ -81,6 +81,10 @@ public interface KeyStage { public interface _FinalStage { FormHiddenField build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage value(Optional value); _FinalStage value(String value); @@ -128,5 +132,17 @@ public _FinalStage value(Optional value) { public FormHiddenField build() { return new FormHiddenField(key, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormLanguages.java b/src/main/java/com/auth0/client/mgmt/types/FormLanguages.java index 747cf6895..d4ed4bc51 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormLanguages.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormLanguages.java @@ -114,5 +114,15 @@ public Builder default_(String default_) { public FormLanguages build() { return new FormLanguages(primary, default_, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormMessages.java b/src/main/java/com/auth0/client/mgmt/types/FormMessages.java index 5cb40b113..13614114f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormMessages.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormMessages.java @@ -116,5 +116,15 @@ public Builder custom(Map custom) { public FormMessages build() { return new FormMessages(errors, custom, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormNodeCoordinates.java b/src/main/java/com/auth0/client/mgmt/types/FormNodeCoordinates.java index 3dd9fcf17..09ec53514 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormNodeCoordinates.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormNodeCoordinates.java @@ -81,6 +81,10 @@ public interface YStage { public interface _FinalStage { FormNodeCoordinates build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -119,5 +123,17 @@ public _FinalStage y(int y) { public FormNodeCoordinates build() { return new FormNodeCoordinates(x, y, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormRouter.java b/src/main/java/com/auth0/client/mgmt/types/FormRouter.java index 8bce78719..e9ba1564b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormRouter.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormRouter.java @@ -119,6 +119,10 @@ public interface TypeStage { public interface _FinalStage { FormRouter build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage coordinates(Optional coordinates); _FinalStage coordinates(FormNodeCoordinates coordinates); @@ -216,5 +220,17 @@ public _FinalStage coordinates(Optional coordinates) { public FormRouter build() { return new FormRouter(id, type, coordinates, alias, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormRouterConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormRouterConfig.java index a6c450ea7..7ba2fe879 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormRouterConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormRouterConfig.java @@ -117,5 +117,15 @@ public Builder fallback(FormNodePointer fallback) { public FormRouterConfig build() { return new FormRouterConfig(rules, fallback, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormRouterRule.java b/src/main/java/com/auth0/client/mgmt/types/FormRouterRule.java index ea3f83563..0c5e69f5d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormRouterRule.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormRouterRule.java @@ -93,6 +93,10 @@ public interface IdStage { public interface _FinalStage { FormRouterRule build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage alias(Optional alias); _FinalStage alias(String alias); @@ -160,5 +164,17 @@ public _FinalStage alias(Optional alias) { public FormRouterRule build() { return new FormRouterRule(id, alias, nextNode, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormStartNode.java b/src/main/java/com/auth0/client/mgmt/types/FormStartNode.java index 5777adaad..6cab613c4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormStartNode.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormStartNode.java @@ -142,5 +142,15 @@ public Builder coordinates(FormNodeCoordinates coordinates) { public FormStartNode build() { return new FormStartNode(hiddenFields, nextNode, coordinates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormStep.java b/src/main/java/com/auth0/client/mgmt/types/FormStep.java index c2ab7ef63..d0ca37323 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormStep.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormStep.java @@ -119,6 +119,10 @@ public interface TypeStage { public interface _FinalStage { FormStep build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage coordinates(Optional coordinates); _FinalStage coordinates(FormNodeCoordinates coordinates); @@ -216,5 +220,17 @@ public _FinalStage coordinates(Optional coordinates) { public FormStep build() { return new FormStep(id, type, coordinates, alias, config, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormStepConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormStepConfig.java index 7b61890cf..a4f71c555 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormStepConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormStepConfig.java @@ -117,5 +117,15 @@ public Builder nextNode(FormNodePointer nextNode) { public FormStepConfig build() { return new FormStepConfig(components, nextNode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormStyle.java b/src/main/java/com/auth0/client/mgmt/types/FormStyle.java index f90d8dbbd..40764b6af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormStyle.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormStyle.java @@ -91,5 +91,15 @@ public Builder css(String css) { public FormStyle build() { return new FormStyle(css, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormSummary.java b/src/main/java/com/auth0/client/mgmt/types/FormSummary.java index e7dca63d4..aeb4d3fa6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormSummary.java @@ -138,6 +138,10 @@ public interface UpdatedAtStage { public interface _FinalStage { FormSummary build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage embeddedAt(Optional embeddedAt); _FinalStage embeddedAt(String embeddedAt); @@ -235,5 +239,17 @@ public _FinalStage embeddedAt(Optional embeddedAt) { public FormSummary build() { return new FormSummary(id, name, createdAt, updatedAt, embeddedAt, submittedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentials.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentials.java index 5b282abf6..119927184 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentials.java @@ -159,6 +159,10 @@ public interface ConfigStage { public interface _FinalStage { FormWidgetAuth0VerifiableCredentials build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -297,5 +301,17 @@ public FormWidgetAuth0VerifiableCredentials build() { return new FormWidgetAuth0VerifiableCredentials( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentialsConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentialsConfig.java index 89fe92e76..fae5b9e26 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentialsConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetAuth0VerifiableCredentialsConfig.java @@ -139,6 +139,10 @@ public interface VerificationIdStage { public interface _FinalStage { FormWidgetAuth0VerifiableCredentialsConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage size(Optional size); _FinalStage size(Double size); @@ -238,5 +242,17 @@ public FormWidgetAuth0VerifiableCredentialsConfig build() { return new FormWidgetAuth0VerifiableCredentialsConfig( url, size, alternateText, accessToken, verificationId, maxWait, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddress.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddress.java index 47b5d5d22..5641ec08b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddress.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddress.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormWidgetGMapsAddress build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormWidgetGMapsAddress build() { return new FormWidgetGMapsAddress( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java index 380619e1e..09209aefb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetGMapsAddressConfig.java @@ -70,6 +70,10 @@ public interface ApiKeyStage { public interface _FinalStage { FormWidgetGMapsAddressConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage apiKey(@NotNull String apiKey) { public FormWidgetGMapsAddressConfig build() { return new FormWidgetGMapsAddressConfig(apiKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptcha.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptcha.java index b7de0b48c..d17515a7e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptcha.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptcha.java @@ -158,6 +158,10 @@ public interface ConfigStage { public interface _FinalStage { FormWidgetRecaptcha build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage label(Optional label); _FinalStage label(String label); @@ -296,5 +300,17 @@ public FormWidgetRecaptcha build() { return new FormWidgetRecaptcha( id, category, type, config, label, hint, required, sensitive, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptchaConfig.java b/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptchaConfig.java index eb3212400..2b0822bf2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptchaConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/FormWidgetRecaptchaConfig.java @@ -82,6 +82,10 @@ public interface SecretKeyStage { public interface _FinalStage { FormWidgetRecaptchaConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -120,5 +124,17 @@ public _FinalStage secretKey(@NotNull String secretKey) { public FormWidgetRecaptchaConfig build() { return new FormWidgetRecaptchaConfig(siteKey, secretKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java index 676cf76ab..9aa526830 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionExecutionResponseContent.java @@ -234,5 +234,15 @@ public GetActionExecutionResponseContent build() { return new GetActionExecutionResponseContent( id, triggerId, status, results, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleActionsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleActionsResponseContent.java index b336a3441..89252a7f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleActionsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleActionsResponseContent.java @@ -191,5 +191,15 @@ public Builder perPage(Integer perPage) { public GetActionModuleActionsResponseContent build() { return new GetActionModuleActionsResponseContent(actions, total, page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleResponseContent.java index 746d4ef8b..6157fcb17 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleResponseContent.java @@ -418,5 +418,15 @@ public GetActionModuleResponseContent build() { latestVersion, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionResponseContent.java index 693038097..3764890c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionResponseContent.java @@ -284,5 +284,15 @@ public GetActionModuleVersionResponseContent build() { return new GetActionModuleVersionResponseContent( id, moduleId, versionNumber, code, secrets, dependencies, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionsResponseContent.java index 0c9be064c..858595e92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModuleVersionsResponseContent.java @@ -191,5 +191,15 @@ public Builder perPage(Integer perPage) { public GetActionModuleVersionsResponseContent build() { return new GetActionModuleVersionsResponseContent(versions, total, page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionModulesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionModulesResponseContent.java index d7b04d4ef..a297b0a20 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionModulesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionModulesResponseContent.java @@ -190,5 +190,15 @@ public Builder perPage(Integer perPage) { public GetActionModulesResponseContent build() { return new GetActionModulesResponseContent(modules, total, page, perPage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionResponseContent.java index b2808f546..8abaae9ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionResponseContent.java @@ -598,5 +598,15 @@ public GetActionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetActionVersionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetActionVersionResponseContent.java index b734effce..92962dd69 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetActionVersionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetActionVersionResponseContent.java @@ -572,5 +572,15 @@ public GetActionVersionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java index 9c53ce7a5..9b1d46964 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetAculResponseContent.java @@ -434,5 +434,15 @@ public GetAculResponseContent build() { filters, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetAttackProtectionCaptchaResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetAttackProtectionCaptchaResponseContent.java index 06ae4b92b..da3982895 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetAttackProtectionCaptchaResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetAttackProtectionCaptchaResponseContent.java @@ -283,5 +283,15 @@ public GetAttackProtectionCaptchaResponseContent build() { simpleCaptcha, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBotDetectionSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBotDetectionSettingsResponseContent.java index d5eb50df4..9b991338d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBotDetectionSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBotDetectionSettingsResponseContent.java @@ -152,6 +152,10 @@ public interface MonitoringModeEnabledStage { public interface _FinalStage { GetBotDetectionSettingsResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage allowlist(List allowlist); _FinalStage addAllowlist(String allowlist); @@ -271,5 +275,17 @@ public GetBotDetectionSettingsResponseContent build() { monitoringModeEnabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java index 3309725f6..0c93fddf4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingDefaultThemeResponseContent.java @@ -176,6 +176,10 @@ public interface WidgetStage { public interface _FinalStage { GetBrandingDefaultThemeResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -283,5 +287,17 @@ public GetBrandingDefaultThemeResponseContent build() { return new GetBrandingDefaultThemeResponseContent( borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingPhoneProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingPhoneProviderResponseContent.java index 117d4c670..b22a662c5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingPhoneProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingPhoneProviderResponseContent.java @@ -167,6 +167,10 @@ public interface NameStage { public interface _FinalStage { GetBrandingPhoneProviderResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -375,5 +379,17 @@ public GetBrandingPhoneProviderResponseContent build() { return new GetBrandingPhoneProviderResponseContent( id, tenant, name, channel, disabled, configuration, createdAt, updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java index a647a9d18..4e25135b8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingResponseContent.java @@ -177,5 +177,15 @@ public Builder font(BrandingFont font) { public GetBrandingResponseContent build() { return new GetBrandingResponseContent(colors, faviconUrl, logoUrl, font, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java index 6bf26326d..fd6b36e85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBrandingThemeResponseContent.java @@ -175,6 +175,10 @@ public interface WidgetStage { public interface _FinalStage { GetBrandingThemeResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -282,5 +286,17 @@ public GetBrandingThemeResponseContent build() { return new GetBrandingThemeResponseContent( borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBreachedPasswordDetectionSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBreachedPasswordDetectionSettingsResponseContent.java index 125b7d2cb..367eb5e15 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBreachedPasswordDetectionSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBreachedPasswordDetectionSettingsResponseContent.java @@ -58,7 +58,7 @@ public Optional getEnabled() { /** * @return Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>. + * Possible values: block, user_notification, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -67,7 +67,7 @@ public Optional> getShields() { /** * @return When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>. + * Possible values: immediately, daily, weekly, monthly. */ @JsonProperty("admin_notification_frequency") public Optional> getAdminNotificationFrequency() { @@ -161,7 +161,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>.

    + * Possible values: block, user_notification, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -176,7 +176,7 @@ public Builder shields(List shields) { /** *

    When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>.

    + * Possible values: immediately, daily, weekly, monthly.

    */ @JsonSetter(value = "admin_notification_frequency", nulls = Nulls.SKIP) public Builder adminNotificationFrequency( @@ -217,5 +217,15 @@ public GetBreachedPasswordDetectionSettingsResponseContent build() { return new GetBreachedPasswordDetectionSettingsResponseContent( enabled, shields, adminNotificationFrequency, method, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetBruteForceSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetBruteForceSettingsResponseContent.java index 45519ac67..af3343e7e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetBruteForceSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetBruteForceSettingsResponseContent.java @@ -58,7 +58,7 @@ public Optional getEnabled() { /** * @return Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>. + * Possible values: block, user_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -162,7 +162,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>.

    + * Possible values: block, user_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -218,5 +218,15 @@ public GetBruteForceSettingsResponseContent build() { return new GetBruteForceSettingsResponseContent( enabled, shields, allowlist, mode, maxAttempts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientCredentialResponseContent.java index 413a65ae1..506b79f00 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientCredentialResponseContent.java @@ -380,5 +380,15 @@ public GetClientCredentialResponseContent build() { expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientGrantResponseContent.java index 4cf6bf0c6..7f8797d75 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientGrantResponseContent.java @@ -379,5 +379,15 @@ public GetClientGrantResponseContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java index de80034af..95296975d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientRequestParameters.java @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetClientRequestParameters build() { return new GetClientRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java index 4a2fc277e..8e85b787f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetClientResponseContent.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public GetClientResponseContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionEnabledClientsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionEnabledClientsResponseContent.java index bb84d0ac9..e82e3ecb0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionEnabledClientsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionEnabledClientsResponseContent.java @@ -139,5 +139,15 @@ public Builder next(String next) { public GetConnectionEnabledClientsResponseContent build() { return new GetConnectionEnabledClientsResponseContent(clients, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java index 36042f5e8..6faaeb5a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileResponseContent.java @@ -254,5 +254,15 @@ public GetConnectionProfileResponseContent build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileTemplateResponseContent.java index dd5a95274..ee5729154 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionProfileTemplateResponseContent.java @@ -152,5 +152,15 @@ public Builder template(ConnectionProfileTemplate template) { public GetConnectionProfileTemplateResponseContent build() { return new GetConnectionProfileTemplateResponseContent(id, displayName, template, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java index 51b0465ae..104f1e583 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionRequestParameters.java @@ -51,7 +51,7 @@ public OptionalNullable getFields() { } /** - * @return <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>) + * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("include_fields") @@ -155,7 +155,7 @@ public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { } /** - *

    <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>)

    + *

    true if the fields specified are to be included in the result, false otherwise (defaults to true)

    */ @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) public Builder includeFields(@Nullable OptionalNullable includeFields) { @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetConnectionRequestParameters build() { return new GetConnectionRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java index d3ca8697b..05f133f0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetConnectionResponseContent.java @@ -432,5 +432,15 @@ public GetConnectionResponseContent build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java index fe0448bb0..2b890744e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetCustomDomainResponseContent.java @@ -270,6 +270,10 @@ public interface TypeStage { public interface _FinalStage { GetCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this is the default custom domain (true) or not (false).

    */ @@ -611,5 +615,17 @@ public GetCustomDomainResponseContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetCustomSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetCustomSigningKeysResponseContent.java index a7392658e..6415008be 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetCustomSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetCustomSigningKeysResponseContent.java @@ -100,5 +100,15 @@ public Builder keys(List keys) { public GetCustomSigningKeysResponseContent build() { return new GetCustomSigningKeysResponseContent(keys, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java index 5c044597e..b2a47cf67 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDailyStatsRequestParameters.java @@ -189,5 +189,15 @@ public Builder to(com.auth0.client.mgmt.core.Nullable to) { public GetDailyStatsRequestParameters build() { return new GetDailyStatsRequestParameters(from, to, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningDefaultMappingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningDefaultMappingResponseContent.java index 150848431..36102662a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningDefaultMappingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningDefaultMappingResponseContent.java @@ -100,5 +100,15 @@ public Builder mapping(List mapping) { public GetDirectoryProvisioningDefaultMappingResponseContent build() { return new GetDirectoryProvisioningDefaultMappingResponseContent(mapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java index 0fc87627a..ab9e43466 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetDirectoryProvisioningResponseContent.java @@ -247,6 +247,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetDirectoryProvisioningResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between Auth0 and IDP user attributes

    */ @@ -509,5 +513,17 @@ public GetDirectoryProvisioningResponseContent build() { lastSynchronizationError, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEmailProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEmailProviderResponseContent.java index 33b76c557..03b294cc6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEmailProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEmailProviderResponseContent.java @@ -208,5 +208,15 @@ public GetEmailProviderResponseContent build() { return new GetEmailProviderResponseContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEmailTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEmailTemplateResponseContent.java index 8907b4e80..adc1dfc6e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEmailTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEmailTemplateResponseContent.java @@ -565,5 +565,15 @@ public GetEmailTemplateResponseContent build() { enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java index 82364113d..089e4474d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEncryptionKeyResponseContent.java @@ -200,6 +200,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetEncryptionKeyResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    ID of parent wrapping key

    */ @@ -412,5 +416,17 @@ public GetEncryptionKeyResponseContent build() { return new GetEncryptionKeyResponseContent( kid, type, state, createdAt, updatedAt, parentKid, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java index 4c7b22948..b4c23a92b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetEventStreamDeliveryHistoryResponseContent.java @@ -155,6 +155,10 @@ public interface EventTypeStage { public interface _FinalStage { GetEventStreamDeliveryHistoryResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Results of delivery attempts

    */ @@ -290,5 +294,17 @@ public GetEventStreamDeliveryHistoryResponseContent build() { return new GetEventStreamDeliveryHistoryResponseContent( id, eventStreamId, status, eventType, attempts, event, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java index c30bb03d9..ca0f95f13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowExecutionResponseContent.java @@ -220,6 +220,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetFlowExecutionResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Journey id

    */ @@ -433,5 +437,17 @@ public GetFlowExecutionResponseContent build() { endedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java index e526c2f07..96abbd4a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowRequestParameters.java @@ -128,5 +128,15 @@ public Builder hydrate(GetFlowRequestParametersHydrateEnum hydrate) { public GetFlowRequestParameters build() { return new GetFlowRequestParameters(hydrate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowResponseContent.java index 5f7ca895d..d666dac14 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowResponseContent.java @@ -139,6 +139,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetFlowResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage actions(Optional> actions); _FinalStage actions(List actions); @@ -237,5 +241,17 @@ public GetFlowResponseContent build() { return new GetFlowResponseContent( id, name, actions, createdAt, updatedAt, executedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java index 1effc5c7f..3cb76b176 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFlowsVaultConnectionResponseContent.java @@ -246,6 +246,10 @@ public interface FingerprintStage { public interface _FinalStage { GetFlowsVaultConnectionResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Flows Vault Connection environment.

    */ @@ -472,5 +476,17 @@ public GetFlowsVaultConnectionResponseContent build() { fingerprint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java index 0370436da..91045dd64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFormRequestParameters.java @@ -128,5 +128,15 @@ public Builder hydrate(FormsRequestParametersHydrateEnum hydrate) { public GetFormRequestParameters build() { return new GetFormRequestParameters(hydrate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetFormResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetFormResponseContent.java index fda4b7a33..6045274b7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetFormResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetFormResponseContent.java @@ -222,6 +222,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetFormResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage messages(Optional messages); _FinalStage messages(FormMessages messages); @@ -473,5 +477,17 @@ public GetFormResponseContent build() { submittedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java index 6baabfb08..4d0b52a76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupMembersResponseContent.java @@ -132,5 +132,15 @@ public Builder next(String next) { public GetGroupMembersResponseContent build() { return new GetGroupMembersResponseContent(members, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java index 68c342ed5..0085556d2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGroupResponseContent.java @@ -243,6 +243,10 @@ public interface UpdatedAtStage { public interface _FinalStage { GetGroupResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    External identifier for the group, often used for SCIM synchronization. Max length of 256 characters.

    */ @@ -516,5 +520,17 @@ public GetGroupResponseContent build() { updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java index bf2dcd0a7..d03ad6a0c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianEnrollmentResponseContent.java @@ -152,6 +152,10 @@ public interface IdStage { public interface _FinalStage { GetGuardianEnrollmentResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage status(Optional status); _FinalStage status(GuardianEnrollmentStatus status); @@ -335,5 +339,17 @@ public GetGuardianEnrollmentResponseContent build() { return new GetGuardianEnrollmentResponseContent( id, status, name, identifier, phoneNumber, enrolledAt, lastAuth, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorDuoSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorDuoSettingsResponseContent.java index a400b0fd0..c5285690f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorDuoSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorDuoSettingsResponseContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public GetGuardianFactorDuoSettingsResponseContent build() { return new GetGuardianFactorDuoSettingsResponseContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneMessageTypesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneMessageTypesResponseContent.java index 9cd64efc5..e7c134372 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneMessageTypesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneMessageTypesResponseContent.java @@ -101,5 +101,15 @@ public Builder messageTypes(List messa public GetGuardianFactorPhoneMessageTypesResponseContent build() { return new GetGuardianFactorPhoneMessageTypesResponseContent(messageTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java index 5a1c1ca0a..a884104b1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorPhoneTemplatesResponseContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { GetGuardianFactorPhoneTemplatesResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public GetGuardianFactorPhoneTemplatesResponseContent build() { return new GetGuardianFactorPhoneTemplatesResponseContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java index e6402e537..59b52b08f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorSmsTemplatesResponseContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { GetGuardianFactorSmsTemplatesResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public GetGuardianFactorSmsTemplatesResponseContent build() { return new GetGuardianFactorSmsTemplatesResponseContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderApnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderApnsResponseContent.java index 96f717c2b..99dcde5a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderApnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderApnsResponseContent.java @@ -173,5 +173,15 @@ public Builder enabled(Boolean enabled) { public GetGuardianFactorsProviderApnsResponseContent build() { return new GetGuardianFactorsProviderApnsResponseContent(bundleId, sandbox, enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneResponseContent.java index 5b13c1cc4..59c1be6fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneResponseContent.java @@ -93,5 +93,15 @@ public Builder provider(GuardianFactorsProviderSmsProviderEnum provider) { public GetGuardianFactorsProviderPhoneResponseContent build() { return new GetGuardianFactorsProviderPhoneResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneTwilioResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneTwilioResponseContent.java index 7d7d0543f..57012bd5e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneTwilioResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPhoneTwilioResponseContent.java @@ -314,5 +314,15 @@ public GetGuardianFactorsProviderPhoneTwilioResponseContent build() { return new GetGuardianFactorsProviderPhoneTwilioResponseContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPushNotificationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPushNotificationResponseContent.java index ac65d4e65..cee43bcf0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPushNotificationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderPushNotificationResponseContent.java @@ -94,5 +94,15 @@ public Builder provider(GuardianFactorsProviderPushNotificationProviderDataEnum public GetGuardianFactorsProviderPushNotificationResponseContent build() { return new GetGuardianFactorsProviderPushNotificationResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsResponseContent.java index 3a720f8c7..118542bc1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsResponseContent.java @@ -93,5 +93,15 @@ public Builder provider(GuardianFactorsProviderSmsProviderEnum provider) { public GetGuardianFactorsProviderSmsResponseContent build() { return new GetGuardianFactorsProviderSmsResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsTwilioResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsTwilioResponseContent.java index 49e7e495c..1d08d10e2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsTwilioResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSmsTwilioResponseContent.java @@ -314,5 +314,15 @@ public GetGuardianFactorsProviderSmsTwilioResponseContent build() { return new GetGuardianFactorsProviderSmsTwilioResponseContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSnsResponseContent.java index 7cc96727d..0423aba76 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetGuardianFactorsProviderSnsResponseContent.java @@ -356,5 +356,15 @@ public GetGuardianFactorsProviderSnsResponseContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java index 3c3c39176..0cd53c4b2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetHookRequestParameters.java @@ -130,5 +130,15 @@ public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { public GetHookRequestParameters build() { return new GetHookRequestParameters(fields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetHookResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetHookResponseContent.java index d7ad3bea4..0a010cff1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetHookResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetHookResponseContent.java @@ -243,5 +243,15 @@ public Builder dependencies(Map dependencies) { public GetHookResponseContent build() { return new GetHookResponseContent(triggerId, id, name, enabled, script, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobErrorResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetJobErrorResponseContent.java index 032a6928c..303f282ca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobErrorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobErrorResponseContent.java @@ -123,5 +123,15 @@ public Builder errors(List errors) { public GetJobErrorResponseContent build() { return new GetJobErrorResponseContent(user, errors, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java index 54163273a..7818cc5e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobGenericErrorResponseContent.java @@ -160,6 +160,10 @@ public interface IdStage { public interface _FinalStage { GetJobGenericErrorResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When this job was created.

    */ @@ -313,5 +317,17 @@ public GetJobGenericErrorResponseContent build() { return new GetJobGenericErrorResponseContent( status, type, createdAt, id, connectionId, statusDetails, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobImportUserError.java b/src/main/java/com/auth0/client/mgmt/types/GetJobImportUserError.java index 679232e11..0b6b415a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobImportUserError.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobImportUserError.java @@ -157,5 +157,15 @@ public Builder path(String path) { public GetJobImportUserError build() { return new GetJobImportUserError(code, message, path, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java index ff0eb0d0e..9a9fa1ade 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobResponseContent.java @@ -230,6 +230,10 @@ public interface IdStage { public interface _FinalStage { GetJobResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When this job was created.

    */ @@ -524,5 +528,17 @@ public GetJobResponseContent build() { summary, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetJobSummary.java b/src/main/java/com/auth0/client/mgmt/types/GetJobSummary.java index 7c0f86247..80a981d32 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetJobSummary.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetJobSummary.java @@ -189,5 +189,15 @@ public Builder total(Integer total) { public GetJobSummary build() { return new GetJobSummary(failed, updated, inserted, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetLogResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetLogResponseContent.java index 4c479c269..f17b7ed32 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetLogResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetLogResponseContent.java @@ -751,5 +751,15 @@ public GetLogResponseContent build() { locationInfo, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetNetworkAclsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetNetworkAclsResponseContent.java index f4cf25ce1..9f0ec7bcb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetNetworkAclsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetNetworkAclsResponseContent.java @@ -251,5 +251,15 @@ public GetNetworkAclsResponseContent build() { return new GetNetworkAclsResponseContent( id, description, active, priority, rule, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java index cddbd693e..830fddfad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java @@ -234,5 +234,15 @@ public GetOrganizationByNameResponseContent build() { return new GetOrganizationByNameResponseContent( id, name, displayName, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationConnectionResponseContent.java index b9aaa3bb2..4cb4acc13 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationConnectionResponseContent.java @@ -225,5 +225,15 @@ public GetOrganizationConnectionResponseContent build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java index 1d2e7cd29..f5dfbd36a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainByNameResponseContent.java @@ -175,6 +175,10 @@ public interface VerificationHostStage { public interface _FinalStage { GetOrganizationDiscoveryDomainByNameResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -300,5 +304,17 @@ public GetOrganizationDiscoveryDomainByNameResponseContent build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java index cffdbe4dc..c3d561e73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationDiscoveryDomainResponseContent.java @@ -175,6 +175,10 @@ public interface VerificationHostStage { public interface _FinalStage { GetOrganizationDiscoveryDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -300,5 +304,17 @@ public GetOrganizationDiscoveryDomainResponseContent build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationInvitationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationInvitationResponseContent.java index 9e33abce2..7f21b707a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationInvitationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationInvitationResponseContent.java @@ -465,5 +465,15 @@ public GetOrganizationInvitationResponseContent build() { ticketId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java index 7c383c987..ef3e0106f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java @@ -233,5 +233,15 @@ public GetOrganizationResponseContent build() { return new GetOrganizationResponseContent( id, name, displayName, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java index 501d59b70..0e34bb06c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetPhoneTemplateResponseContent.java @@ -154,6 +154,10 @@ public interface DisabledStage { public interface _FinalStage { GetPhoneTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -277,5 +281,17 @@ public GetPhoneTemplateResponseContent build() { return new GetPhoneTemplateResponseContent( id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokenResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokenResponseContent.java index 91857abc6..4656c48fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokenResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRefreshTokenResponseContent.java @@ -477,5 +477,15 @@ public GetRefreshTokenResponseContent build() { lastExchangedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java index 3012356f2..2866dbaa3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerRequestParameters.java @@ -132,5 +132,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetResourceServerRequestParameters build() { return new GetResourceServerRequestParameters(includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java index 17b8a5c81..0b61e9a94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetResourceServerResponseContent.java @@ -737,5 +737,15 @@ public GetResourceServerResponseContent build() { clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java index e3ac98df6..656f59a9b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsNewDeviceResponseContent.java @@ -77,6 +77,10 @@ public interface RememberForStage { public interface _FinalStage { GetRiskAssessmentsSettingsNewDeviceResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage rememberFor(int rememberFor) { public GetRiskAssessmentsSettingsNewDeviceResponseContent build() { return new GetRiskAssessmentsSettingsNewDeviceResponseContent(rememberFor, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java index b670eed95..4de912ffb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRiskAssessmentsSettingsResponseContent.java @@ -76,6 +76,10 @@ public interface EnabledStage { public interface _FinalStage { GetRiskAssessmentsSettingsResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage enabled(boolean enabled) { public GetRiskAssessmentsSettingsResponseContent build() { return new GetRiskAssessmentsSettingsResponseContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRoleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRoleResponseContent.java index 4b04ade20..0ead2bc84 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRoleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRoleResponseContent.java @@ -157,5 +157,15 @@ public Builder description(String description) { public GetRoleResponseContent build() { return new GetRoleResponseContent(id, name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java index 0b9e31fa6..3f32553b6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRuleRequestParameters.java @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetRuleRequestParameters build() { return new GetRuleRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetRuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetRuleResponseContent.java index 716fd9d72..3b971063c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetRuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetRuleResponseContent.java @@ -249,5 +249,15 @@ public Builder stage(String stage) { public GetRuleResponseContent build() { return new GetRuleResponseContent(name, id, enabled, script, order, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationDefaultMappingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationDefaultMappingResponseContent.java index 856daa884..731c74f23 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationDefaultMappingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationDefaultMappingResponseContent.java @@ -100,5 +100,15 @@ public Builder mapping(List mapping) { public GetScimConfigurationDefaultMappingResponseContent build() { return new GetScimConfigurationDefaultMappingResponseContent(mapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java index a3da02aeb..7f026d52c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetScimConfigurationResponseContent.java @@ -328,5 +328,15 @@ public GetScimConfigurationResponseContent build() { updatedOn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSelfServiceProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSelfServiceProfileResponseContent.java index 8cd709979..faeab76d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSelfServiceProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSelfServiceProfileResponseContent.java @@ -355,5 +355,15 @@ public GetSelfServiceProfileResponseContent build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java index 3f7ebba29..237791f18 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSessionResponseContent.java @@ -460,5 +460,15 @@ public GetSessionResponseContent build() { sessionMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSettingsResponseContent.java index 7a588405f..2887ae8ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSettingsResponseContent.java @@ -154,5 +154,15 @@ public GetSettingsResponseContent build() { return new GetSettingsResponseContent( universalLoginExperience, identifierFirst, webauthnPlatformFirstFactor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java index c53de182e..8e0d7419c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSigningKeysResponseContent.java @@ -248,6 +248,10 @@ public interface ThumbprintStage { public interface _FinalStage { GetSigningKeysResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The public certificate of the signing key in pkcs7 format

    */ @@ -548,5 +552,17 @@ public GetSigningKeysResponseContent build() { revokedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSupplementalSignalsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSupplementalSignalsResponseContent.java index e8571ce80..c85275943 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSupplementalSignalsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSupplementalSignalsResponseContent.java @@ -99,5 +99,15 @@ public Builder akamaiEnabled(Boolean akamaiEnabled) { public GetSupplementalSignalsResponseContent build() { return new GetSupplementalSignalsResponseContent(akamaiEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetSuspiciousIpThrottlingSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetSuspiciousIpThrottlingSettingsResponseContent.java index a73e05b88..d665c2e3a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetSuspiciousIpThrottlingSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetSuspiciousIpThrottlingSettingsResponseContent.java @@ -54,7 +54,7 @@ public Optional getEnabled() { /** * @return Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -143,7 +143,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -182,5 +182,15 @@ public GetSuspiciousIpThrottlingSettingsResponseContent build() { return new GetSuspiciousIpThrottlingSettingsResponseContent( enabled, shields, allowlist, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java index 0e7f904d7..da70b1f82 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetTenantSettingsResponseContent.java @@ -1450,5 +1450,15 @@ public GetTenantSettingsResponseContent build() { enableAiGuide, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetTokenExchangeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetTokenExchangeProfileResponseContent.java index 7ffc478d4..e4882495c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetTokenExchangeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetTokenExchangeProfileResponseContent.java @@ -277,5 +277,15 @@ public GetTokenExchangeProfileResponseContent build() { return new GetTokenExchangeProfileResponseContent( id, name, subjectTokenType, actionId, type, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUniversalLoginTemplate.java b/src/main/java/com/auth0/client/mgmt/types/GetUniversalLoginTemplate.java index 1af8321d2..4ae79a36a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUniversalLoginTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUniversalLoginTemplate.java @@ -97,5 +97,15 @@ public Builder body(String body) { public GetUniversalLoginTemplate build() { return new GetUniversalLoginTemplate(body, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileResponseContent.java index 750030c22..345b0aa66 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileResponseContent.java @@ -169,5 +169,15 @@ public Builder userAttributes( public GetUserAttributeProfileResponseContent build() { return new GetUserAttributeProfileResponseContent(id, name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileTemplateResponseContent.java index 5abc901a1..98f67966e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserAttributeProfileTemplateResponseContent.java @@ -152,5 +152,15 @@ public Builder template(UserAttributeProfileTemplate template) { public GetUserAttributeProfileTemplateResponseContent build() { return new GetUserAttributeProfileTemplateResponseContent(id, displayName, template, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java index 1b7f4ea83..ace191406 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserAuthenticationMethodResponseContent.java @@ -353,6 +353,10 @@ public interface CreatedAtStage { public interface _FinalStage { GetUserAuthenticationMethodResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The authentication method status

    */ @@ -925,5 +929,17 @@ public GetUserAuthenticationMethodResponseContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java index b4c15799a..7458f1af9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserGroupsPaginatedResponseContent.java @@ -208,5 +208,15 @@ public Builder total(Double total) { public GetUserGroupsPaginatedResponseContent build() { return new GetUserGroupsPaginatedResponseContent(groups, next, start, limit, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java index a95706d17..b7cd5485c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserRequestParameters.java @@ -191,5 +191,15 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ public GetUserRequestParameters build() { return new GetUserRequestParameters(fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetUserResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetUserResponseContent.java index 497df4221..a9176af16 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetUserResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetUserResponseContent.java @@ -145,7 +145,7 @@ public Optional getUsername() { } /** - * @return Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>. + * @return Phone number for this user. Follows the E.164 recommendation. */ @JsonProperty("phone_number") public Optional getPhoneNumber() { @@ -466,7 +466,7 @@ public Builder username(String username) { } /** - *

    Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>.

    + *

    Phone number for this user. Follows the E.164 recommendation.

    */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { @@ -713,5 +713,15 @@ public GetUserResponseContent build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GetVerifiableCredentialTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetVerifiableCredentialTemplateResponseContent.java index f17487c04..998abf541 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetVerifiableCredentialTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetVerifiableCredentialTemplateResponseContent.java @@ -418,5 +418,15 @@ public GetVerifiableCredentialTemplateResponseContent build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Group.java b/src/main/java/com/auth0/client/mgmt/types/Group.java index 2026f9e55..ccaf8c3ce 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Group.java +++ b/src/main/java/com/auth0/client/mgmt/types/Group.java @@ -425,5 +425,15 @@ public Group build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GroupMember.java b/src/main/java/com/auth0/client/mgmt/types/GroupMember.java index 0b0880e42..5112999b0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GroupMember.java +++ b/src/main/java/com/auth0/client/mgmt/types/GroupMember.java @@ -208,5 +208,15 @@ public Builder createdAt(OffsetDateTime createdAt) { public GroupMember build() { return new GroupMember(id, memberType, type, connectionId, createdAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java b/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java index 8cca5a606..b7dd8900e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java +++ b/src/main/java/com/auth0/client/mgmt/types/GuardianFactor.java @@ -101,6 +101,10 @@ public interface EnabledStage { public interface _FinalStage { GuardianFactor build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether trial limits have been exceeded.

    */ @@ -183,5 +187,17 @@ public _FinalStage trialExpired(Optional trialExpired) { public GuardianFactor build() { return new GuardianFactor(enabled, trialExpired, name, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Hook.java b/src/main/java/com/auth0/client/mgmt/types/Hook.java index b29098a24..b5361ef19 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Hook.java +++ b/src/main/java/com/auth0/client/mgmt/types/Hook.java @@ -243,5 +243,15 @@ public Builder dependencies(Map dependencies) { public Hook build() { return new Hook(triggerId, id, name, enabled, script, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/HttpCustomHeader.java b/src/main/java/com/auth0/client/mgmt/types/HttpCustomHeader.java index 1764d0864..a8b053b46 100644 --- a/src/main/java/com/auth0/client/mgmt/types/HttpCustomHeader.java +++ b/src/main/java/com/auth0/client/mgmt/types/HttpCustomHeader.java @@ -126,5 +126,15 @@ public Builder value(String value) { public HttpCustomHeader build() { return new HttpCustomHeader(header, value, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Identity.java b/src/main/java/com/auth0/client/mgmt/types/Identity.java index 7be1f5779..361ff9329 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Identity.java +++ b/src/main/java/com/auth0/client/mgmt/types/Identity.java @@ -108,6 +108,10 @@ public interface ProviderStage { public interface _FinalStage { Identity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    connection_id of the identity.

    */ @@ -180,5 +184,17 @@ public _FinalStage connectionId(Optional connectionId) { public Identity build() { return new Identity(userId, provider, connectionId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java index 588507ce7..a7ca3b071 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ImportEncryptionKeyResponseContent.java @@ -201,6 +201,10 @@ public interface UpdatedAtStage { public interface _FinalStage { ImportEncryptionKeyResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    ID of parent wrapping key

    */ @@ -413,5 +417,17 @@ public ImportEncryptionKeyResponseContent build() { return new ImportEncryptionKeyResponseContent( kid, type, state, createdAt, updatedAt, parentKid, publicKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Integration.java b/src/main/java/com/auth0/client/mgmt/types/Integration.java index 647537bc9..c203ac62e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Integration.java +++ b/src/main/java/com/auth0/client/mgmt/types/Integration.java @@ -515,5 +515,15 @@ public Integration build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IntegrationRelease.java b/src/main/java/com/auth0/client/mgmt/types/IntegrationRelease.java index 60f4838a4..c00dcf124 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IntegrationRelease.java +++ b/src/main/java/com/auth0/client/mgmt/types/IntegrationRelease.java @@ -211,5 +211,15 @@ public IntegrationRelease build() { return new IntegrationRelease( id, trigger, semver, requiredSecrets, requiredConfiguration, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParam.java b/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParam.java index 8a8356603..ab3998950 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParam.java +++ b/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParam.java @@ -353,5 +353,15 @@ public IntegrationRequiredParam build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParamOption.java b/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParamOption.java index 29cd5ccc1..1cc62a43e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParamOption.java +++ b/src/main/java/com/auth0/client/mgmt/types/IntegrationRequiredParamOption.java @@ -126,5 +126,15 @@ public Builder label(String label) { public IntegrationRequiredParamOption build() { return new IntegrationRequiredParamOption(value, label, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/IntegrationSemVer.java b/src/main/java/com/auth0/client/mgmt/types/IntegrationSemVer.java index 62f0972f6..7717b5618 100644 --- a/src/main/java/com/auth0/client/mgmt/types/IntegrationSemVer.java +++ b/src/main/java/com/auth0/client/mgmt/types/IntegrationSemVer.java @@ -126,5 +126,15 @@ public Builder minor(Integer minor) { public IntegrationSemVer build() { return new IntegrationSemVer(major, minor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java index 37a8fb6e6..53965b748 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/LinkedClientConfiguration.java @@ -76,6 +76,10 @@ public interface ClientIdStage { public interface _FinalStage { LinkedClientConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage clientId(@NotNull String clientId) { public LinkedClientConfiguration build() { return new LinkedClientConfiguration(clientId, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionBindingsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListActionBindingsPaginatedResponseContent.java index 3f2a5dadd..ee2d3d193 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionBindingsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionBindingsPaginatedResponseContent.java @@ -191,5 +191,15 @@ public Builder bindings(List bindings) { public ListActionBindingsPaginatedResponseContent build() { return new ListActionBindingsPaginatedResponseContent(total, page, perPage, bindings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionTriggersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListActionTriggersResponseContent.java index 85b7426c1..53c396b23 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionTriggersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionTriggersResponseContent.java @@ -93,5 +93,15 @@ public Builder triggers(List triggers) { public ListActionTriggersResponseContent build() { return new ListActionTriggersResponseContent(triggers, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionVersionsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListActionVersionsPaginatedResponseContent.java index ecc1418e3..f3dccdcb0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionVersionsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionVersionsPaginatedResponseContent.java @@ -185,5 +185,15 @@ public Builder versions(List versions) { public ListActionVersionsPaginatedResponseContent build() { return new ListActionVersionsPaginatedResponseContent(total, page, perPage, versions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListActionsPaginatedResponseContent.java index bca8a2104..600f44584 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionsPaginatedResponseContent.java @@ -191,5 +191,15 @@ public Builder actions(List actions) { public ListActionsPaginatedResponseContent build() { return new ListActionsPaginatedResponseContent(total, page, perPage, actions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java index 677299d8d..6a1e2bc67 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListActionsRequestParameters.java @@ -415,5 +415,15 @@ public ListActionsRequestParameters build() { return new ListActionsRequestParameters( triggerId, actionName, deployed, page, perPage, installed, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java index 0bb4607fd..1f2d3fb4b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListAculsOffsetPaginatedResponseContent.java @@ -185,5 +185,15 @@ public Builder total(Double total) { public ListAculsOffsetPaginatedResponseContent build() { return new ListAculsOffsetPaginatedResponseContent(configs, start, limit, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java index 28ab28cc6..470b7a2d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListAculsResponseContentItem.java @@ -434,5 +434,15 @@ public ListAculsResponseContentItem build() { filters, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListBrandingPhoneProvidersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListBrandingPhoneProvidersResponseContent.java index fba219f29..15031f247 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListBrandingPhoneProvidersResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListBrandingPhoneProvidersResponseContent.java @@ -94,5 +94,15 @@ public Builder providers(List providers) { public ListBrandingPhoneProvidersResponseContent build() { return new ListBrandingPhoneProvidersResponseContent(providers, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientConnectionsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListClientConnectionsResponseContent.java index e9bb942a4..1966eae0e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientConnectionsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientConnectionsResponseContent.java @@ -133,5 +133,15 @@ public Builder next(String next) { public ListClientConnectionsResponseContent build() { return new ListClientConnectionsResponseContent(connections, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantOrganizationsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantOrganizationsPaginatedResponseContent.java index b356b3512..bf34c5f40 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantOrganizationsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantOrganizationsPaginatedResponseContent.java @@ -37,7 +37,7 @@ private ListClientGrantOrganizationsPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListClientGrantOrganizationsPaginatedResponseContent other) } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -124,5 +124,15 @@ public Builder organizations(List organizations) { public ListClientGrantOrganizationsPaginatedResponseContent build() { return new ListClientGrantOrganizationsPaginatedResponseContent(next, organizations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantPaginatedResponseContent.java index 4fddd9cf4..eae9cd7af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantPaginatedResponseContent.java @@ -37,7 +37,7 @@ private ListClientGrantPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListClientGrantPaginatedResponseContent other) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -124,5 +124,15 @@ public Builder clientGrants(List clientGrants) { public ListClientGrantPaginatedResponseContent build() { return new ListClientGrantPaginatedResponseContent(next, clientGrants, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java index 149328dac..2622eca57 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientGrantsRequestParameters.java @@ -425,5 +425,15 @@ public ListClientGrantsRequestParameters build() { return new ListClientGrantsRequestParameters( from, take, audience, clientId, allowAnyOrganization, subjectType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListClientsOffsetPaginatedResponseContent.java index b1a490f66..0ba18af85 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder clients(List clients) { public ListClientsOffsetPaginatedResponseContent build() { return new ListClientsOffsetPaginatedResponseContent(start, limit, total, clients, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java index 83ef25b3e..d9584dbde 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListClientsRequestParameters.java @@ -154,7 +154,7 @@ public OptionalNullable getAppType() { } /** - * @return Advanced Query in <a href="http://www.lucenetutorial.com/lucene-query-syntax.html">Lucene</a> syntax.<br /><b>Permitted Queries</b>:<br /><ul><li><i>client_grant.organization_id:{organization_id}</i></li><li><i>client_grant.allow_any_organization:true</i></li></ul><b>Additional Restrictions</b>:<br /><ul><li>Cannot be used in combination with other filters</li><li>Requires use of the <i>from</i> and <i>take</i> paging parameters (checkpoint paginatinon)</li><li>Reduced rate limits apply. See <a href="https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/rate-limit-configurations/enterprise-public">Rate Limit Configurations</a></li></ul><i><b>Note</b>: Recent updates may not be immediately reflected in query results</i> + * @return 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 */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -558,7 +558,7 @@ public Builder appType(com.auth0.client.mgmt.core.Nullable appType) { } /** - *

    Advanced Query in <a href="http://www.lucenetutorial.com/lucene-query-syntax.html">Lucene</a> syntax.<br /><b>Permitted Queries</b>:<br /><ul><li><i>client_grant.organization_id:{organization_id}</i></li><li><i>client_grant.allow_any_organization:true</i></li></ul><b>Additional Restrictions</b>:<br /><ul><li>Cannot be used in combination with other filters</li><li>Requires use of the <i>from</i> and <i>take</i> paging parameters (checkpoint paginatinon)</li><li>Reduced rate limits apply. See <a href="https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy/rate-limit-configurations/enterprise-public">Rate Limit Configurations</a></li></ul><i><b>Note</b>: Recent updates may not be immediately reflected in query results</i>

    + *

    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

    */ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@Nullable OptionalNullable q) { @@ -604,5 +604,15 @@ public ListClientsRequestParameters build() { q, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java index 05a7d1b71..2ed7a9de3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListConnectionProfileRequestParameters build() { return new ListConnectionProfileRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileTemplateResponseContent.java index fba212a2b..bc7b581e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfileTemplateResponseContent.java @@ -96,5 +96,15 @@ public Builder connectionProfileTemplates(List co public ListConnectionProfileTemplateResponseContent build() { return new ListConnectionProfileTemplateResponseContent(connectionProfileTemplates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfilesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfilesPaginatedResponseContent.java index d0a16859b..e08a18876 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfilesPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionProfilesPaginatedResponseContent.java @@ -124,5 +124,15 @@ public Builder connectionProfiles(List connectionProfiles) { public ListConnectionProfilesPaginatedResponseContent build() { return new ListConnectionProfilesPaginatedResponseContent(next, connectionProfiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsCheckpointPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsCheckpointPaginatedResponseContent.java index 7b7e04dcd..c9c2432ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsCheckpointPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsCheckpointPaginatedResponseContent.java @@ -37,7 +37,7 @@ private ListConnectionsCheckpointPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results. + * @return Opaque identifier for use with the from query parameter for the next page of results. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListConnectionsCheckpointPaginatedResponseContent other) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -124,5 +124,15 @@ public Builder connections(List connections) { public ListConnectionsCheckpointPaginatedResponseContent build() { return new ListConnectionsCheckpointPaginatedResponseContent(next, connections, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java index a4f64a988..459c3e21a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListConnectionsQueryParameters.java @@ -114,7 +114,7 @@ public OptionalNullable getFields() { } /** - * @return <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>) + * @return true if the fields specified are to be included in the result, false otherwise (defaults to true) */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("include_fields") @@ -385,7 +385,7 @@ public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { } /** - *

    <code>true</code> if the fields specified are to be included in the result, <code>false</code> otherwise (defaults to <code>true</code>)

    + *

    true if the fields specified are to be included in the result, false otherwise (defaults to true)

    */ @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) public Builder includeFields(@Nullable OptionalNullable includeFields) { @@ -422,5 +422,15 @@ public ListConnectionsQueryParameters build() { return new ListConnectionsQueryParameters( strategy, from, take, name, fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java index 662c4a03e..4a49cd1d7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListCustomDomainsRequestParameters.java @@ -47,7 +47,7 @@ private ListCustomDomainsRequestParameters( } /** - * @return Query in <a href ="http://www.lucenetutorial.com/lucene-query-syntax.html">Lucene query string syntax</a>. + * @return Query in Lucene query string syntax. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -83,7 +83,7 @@ public OptionalNullable getIncludeFields() { } /** - * @return Field to sort by. Only <code>domain:1</code> (ascending order by domain) is supported at this time. + * @return Field to sort by. Only domain:1 (ascending order by domain) is supported at this time. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("sort") @@ -175,7 +175,7 @@ public Builder from(ListCustomDomainsRequestParameters other) { } /** - *

    Query in <a href ="http://www.lucenetutorial.com/lucene-query-syntax.html">Lucene query string syntax</a>.

    + *

    Query in Lucene query string syntax.

    */ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@Nullable OptionalNullable q) { @@ -277,7 +277,7 @@ public Builder includeFields(com.auth0.client.mgmt.core.Nullable includ } /** - *

    Field to sort by. Only <code>domain:1</code> (ascending order by domain) is supported at this time.

    + *

    Field to sort by. Only domain:1 (ascending order by domain) is supported at this time.

    */ @JsonSetter(value = "sort", nulls = Nulls.SKIP) public Builder sort(@Nullable OptionalNullable sort) { @@ -313,5 +313,15 @@ public Builder sort(com.auth0.client.mgmt.core.Nullable sort) { public ListCustomDomainsRequestParameters build() { return new ListCustomDomainsRequestParameters(q, fields, includeFields, sort, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsOffsetPaginatedResponseContent.java index c97ba3c8d..bd14aa3e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListDeviceCredentialsOffsetPaginatedResponseContent build() { return new ListDeviceCredentialsOffsetPaginatedResponseContent( start, limit, total, deviceCredentials, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java index 4bf65f863..7c5b45d94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListDeviceCredentialsRequestParameters.java @@ -535,5 +535,15 @@ public ListDeviceCredentialsRequestParameters build() { return new ListDeviceCredentialsRequestParameters( page, perPage, includeTotals, fields, includeFields, userId, clientId, type, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListDirectoryProvisioningsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListDirectoryProvisioningsResponseContent.java index d0a8040e6..b5e6e8fa4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListDirectoryProvisioningsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListDirectoryProvisioningsResponseContent.java @@ -141,5 +141,15 @@ public Builder next(String next) { public ListDirectoryProvisioningsResponseContent build() { return new ListDirectoryProvisioningsResponseContent(directoryProvisionings, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListEncryptionKeyOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListEncryptionKeyOffsetPaginatedResponseContent.java index 8b4abaab5..635024104 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEncryptionKeyOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEncryptionKeyOffsetPaginatedResponseContent.java @@ -191,5 +191,15 @@ public Builder keys(List keys) { public ListEncryptionKeyOffsetPaginatedResponseContent build() { return new ListEncryptionKeyOffsetPaginatedResponseContent(start, limit, total, keys, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java index 0dffe8000..d77157f34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsRequestParameters.java @@ -180,5 +180,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListEventStreamsRequestParameters build() { return new ListEventStreamsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java index fb24218ab..0baf3770a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListEventStreamsResponseContent.java @@ -42,7 +42,7 @@ public Optional> getEventStreams() { } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results. + * @return Opaque identifier for use with the from query parameter for the next page of results. */ @JsonProperty("next") public Optional getNext() { @@ -107,7 +107,7 @@ public Builder eventStreams(List eventStreams) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -123,5 +123,15 @@ public Builder next(String next) { public ListEventStreamsResponseContent build() { return new ListEventStreamsResponseContent(eventStreams, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowExecutionsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowExecutionsPaginatedResponseContent.java index af0d6c733..2ed4841f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowExecutionsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowExecutionsPaginatedResponseContent.java @@ -37,7 +37,7 @@ private ListFlowExecutionsPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListFlowExecutionsPaginatedResponseContent other) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -124,5 +124,15 @@ public Builder executions(List executions) { public ListFlowExecutionsPaginatedResponseContent build() { return new ListFlowExecutionsPaginatedResponseContent(next, executions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowsOffsetPaginatedResponseContent.java index 94bce6bc6..d559b0b41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowsOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder flows(List flows) { public ListFlowsOffsetPaginatedResponseContent build() { return new ListFlowsOffsetPaginatedResponseContent(start, limit, total, flows, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java index c012c50a9..7a1b1845c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowsRequestParameters.java @@ -345,5 +345,15 @@ public ListFlowsRequestParameters build() { return new ListFlowsRequestParameters( hydrate, page, perPage, includeTotals, synchronous, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFlowsVaultConnectionsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListFlowsVaultConnectionsOffsetPaginatedResponseContent.java index a52a3a21c..eae07e778 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFlowsVaultConnectionsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFlowsVaultConnectionsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListFlowsVaultConnectionsOffsetPaginatedResponseContent build() { return new ListFlowsVaultConnectionsOffsetPaginatedResponseContent( start, limit, total, connections, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFormsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListFormsOffsetPaginatedResponseContent.java index 39ce76c65..7a0298e8d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFormsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFormsOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder forms(List forms) { public ListFormsOffsetPaginatedResponseContent build() { return new ListFormsOffsetPaginatedResponseContent(start, limit, total, forms, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java index 8bedcddfc..f9884eabb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListFormsRequestParameters.java @@ -283,5 +283,15 @@ public Builder includeTotals(com.auth0.client.mgmt.core.Nullable includ public ListFormsRequestParameters build() { return new ListFormsRequestParameters(hydrate, page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java index 1ff98e7e5..6cc80a39b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListGroupsPaginatedResponseContent.java @@ -208,5 +208,15 @@ public Builder total(Double total) { public ListGroupsPaginatedResponseContent build() { return new ListGroupsPaginatedResponseContent(groups, next, start, limit, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java index 5cf0c078e..f23c5eaeb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListGroupsRequestParameters.java @@ -485,5 +485,15 @@ public ListGroupsRequestParameters build() { return new ListGroupsRequestParameters( connectionId, name, externalId, fields, includeFields, from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListHooksOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListHooksOffsetPaginatedResponseContent.java index 58d7d6974..28e51b16d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListHooksOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListHooksOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder hooks(List hooks) { public ListHooksOffsetPaginatedResponseContent build() { return new ListHooksOffsetPaginatedResponseContent(start, limit, total, hooks, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java index 4f14df2d0..6eef12b92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListHooksRequestParameters.java @@ -406,5 +406,15 @@ public ListHooksRequestParameters build() { return new ListHooksRequestParameters( page, perPage, includeTotals, enabled, fields, triggerId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListLogOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListLogOffsetPaginatedResponseContent.java index 1acead10e..a0da0f791 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListLogOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListLogOffsetPaginatedResponseContent.java @@ -191,5 +191,15 @@ public Builder logs(List logs) { public ListLogOffsetPaginatedResponseContent build() { return new ListLogOffsetPaginatedResponseContent(start, limit, length, total, logs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java index a6a3d2d09..7c340258f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListLogsRequestParameters.java @@ -68,7 +68,7 @@ public OptionalNullable getPage() { } /** - * @return Number of results per page. Paging is disabled if parameter not sent. Default: <code>50</code>. Max value: <code>100</code> + * @return Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100 */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("per_page") @@ -77,7 +77,7 @@ public OptionalNullable getPerPage() { } /** - * @return Field to use for sorting appended with <code>:1</code> for ascending and <code>:-1</code> for descending. e.g. <code>date:-1</code> + * @return Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1 */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("sort") @@ -89,7 +89,7 @@ public OptionalNullable getSort() { } /** - * @return Comma-separated list of fields to include or exclude (based on value provided for <code>include_fields</code>) in the result. Leave empty to retrieve all fields. + * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("fields") @@ -101,7 +101,7 @@ public OptionalNullable getFields() { } /** - * @return Whether specified fields are to be included (<code>true</code>) or excluded (<code>false</code>) + * @return Whether specified fields are to be included (true) or excluded (false) */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("include_fields") @@ -262,7 +262,7 @@ public Builder page(Nullable page) { } /** - *

    Number of results per page. Paging is disabled if parameter not sent. Default: <code>50</code>. Max value: <code>100</code>

    + *

    Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100

    */ @JsonSetter(value = "per_page", nulls = Nulls.SKIP) public Builder perPage(OptionalNullable perPage) { @@ -296,7 +296,7 @@ public Builder perPage(Nullable perPage) { } /** - *

    Field to use for sorting appended with <code>:1</code> for ascending and <code>:-1</code> for descending. e.g. <code>date:-1</code>

    + *

    Field to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1

    */ @JsonSetter(value = "sort", nulls = Nulls.SKIP) public Builder sort(@org.jetbrains.annotations.Nullable OptionalNullable sort) { @@ -330,7 +330,7 @@ public Builder sort(Nullable sort) { } /** - *

    Comma-separated list of fields to include or exclude (based on value provided for <code>include_fields</code>) in the result. Leave empty to retrieve all fields.

    + *

    Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

    */ @JsonSetter(value = "fields", nulls = Nulls.SKIP) public Builder fields(@org.jetbrains.annotations.Nullable OptionalNullable fields) { @@ -364,7 +364,7 @@ public Builder fields(Nullable fields) { } /** - *

    Whether specified fields are to be included (<code>true</code>) or excluded (<code>false</code>)

    + *

    Whether specified fields are to be included (true) or excluded (false)

    */ @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) public Builder includeFields(@org.jetbrains.annotations.Nullable OptionalNullable includeFields) { @@ -471,5 +471,15 @@ public ListLogsRequestParameters build() { return new ListLogsRequestParameters( page, perPage, sort, fields, includeFields, includeTotals, search, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsOffsetPaginatedResponseContent.java index c6f098161..1b578e240 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListNetworkAclsOffsetPaginatedResponseContent build() { return new ListNetworkAclsOffsetPaginatedResponseContent( networkAcls, start, limit, total, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java index c0384bdc5..02203672f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListNetworkAclsRequestParameters.java @@ -223,5 +223,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListNetworkAclsRequestParameters build() { return new ListNetworkAclsRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientGrantsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientGrantsOffsetPaginatedResponseContent.java index 758e7980c..32a4f26eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientGrantsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationClientGrantsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListOrganizationClientGrantsOffsetPaginatedResponseContent build() { return new ListOrganizationClientGrantsOffsetPaginatedResponseContent( start, limit, total, clientGrants, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationConnectionsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationConnectionsOffsetPaginatedResponseContent.java index 29935e032..77a77799f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationConnectionsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationConnectionsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListOrganizationConnectionsOffsetPaginatedResponseContent build() { return new ListOrganizationConnectionsOffsetPaginatedResponseContent( start, limit, total, enabledConnections, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationDiscoveryDomainsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationDiscoveryDomainsResponseContent.java index 1164613b0..f18b8733c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationDiscoveryDomainsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationDiscoveryDomainsResponseContent.java @@ -129,5 +129,15 @@ public Builder addAllDomains(List domains) { public ListOrganizationDiscoveryDomainsResponseContent build() { return new ListOrganizationDiscoveryDomainsResponseContent(next, domains, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationInvitationsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationInvitationsOffsetPaginatedResponseContent.java index 211d4a4cf..cf6e4fdcb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationInvitationsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationInvitationsOffsetPaginatedResponseContent.java @@ -142,5 +142,15 @@ public ListOrganizationInvitationsOffsetPaginatedResponseContent build() { return new ListOrganizationInvitationsOffsetPaginatedResponseContent( start, limit, invitations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMemberRolesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMemberRolesOffsetPaginatedResponseContent.java index d0bc8b685..71bd5a66d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMemberRolesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMemberRolesOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListOrganizationMemberRolesOffsetPaginatedResponseContent build() { return new ListOrganizationMemberRolesOffsetPaginatedResponseContent( start, limit, total, roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMembersPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMembersPaginatedResponseContent.java index f04ca1ef3..1a0833d60 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMembersPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationMembersPaginatedResponseContent.java @@ -118,5 +118,15 @@ public Builder members(List members) { public ListOrganizationMembersPaginatedResponseContent build() { return new ListOrganizationMembersPaginatedResponseContent(next, members, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsPaginatedResponseContent.java index f299d9278..a99f4d165 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsPaginatedResponseContent.java @@ -118,5 +118,15 @@ public Builder organizations(List organizations) { public ListOrganizationsPaginatedResponseContent build() { return new ListOrganizationsPaginatedResponseContent(next, organizations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java index 36cbf3e96..03451466e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationsRequestParameters.java @@ -64,7 +64,7 @@ public OptionalNullable getTake() { } /** - * @return Field to sort by. Use <code>field:order</code> where order is <code>1</code> for ascending and <code>-1</code> for descending. e.g. <code>created_at:1</code>. We currently support sorting by the following fields: <code>name</code>, <code>display_name</code> and <code>created_at</code>. + * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("sort") @@ -206,7 +206,7 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { } /** - *

    Field to sort by. Use <code>field:order</code> where order is <code>1</code> for ascending and <code>-1</code> for descending. e.g. <code>created_at:1</code>. We currently support sorting by the following fields: <code>name</code>, <code>display_name</code> and <code>created_at</code>.

    + *

    Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1. We currently support sorting by the following fields: name, display_name and created_at.

    */ @JsonSetter(value = "sort", nulls = Nulls.SKIP) public Builder sort(@Nullable OptionalNullable sort) { @@ -242,5 +242,15 @@ public Builder sort(com.auth0.client.mgmt.core.Nullable sort) { public ListOrganizationsRequestParameters build() { return new ListOrganizationsRequestParameters(from, take, sort, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListPhoneTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListPhoneTemplatesResponseContent.java index a01528c7b..d1be706b6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListPhoneTemplatesResponseContent.java @@ -93,5 +93,15 @@ public Builder templates(List templates) { public ListPhoneTemplatesResponseContent build() { return new ListPhoneTemplatesResponseContent(templates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRefreshTokensPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRefreshTokensPaginatedResponseContent.java index 15d627177..3dc2f4727 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRefreshTokensPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRefreshTokensPaginatedResponseContent.java @@ -124,5 +124,15 @@ public Builder next(String next) { public ListRefreshTokensPaginatedResponseContent build() { return new ListRefreshTokensPaginatedResponseContent(tokens, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerOffsetPaginatedResponseContent.java index 9d78cdf54..21579fd15 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListResourceServerOffsetPaginatedResponseContent build() { return new ListResourceServerOffsetPaginatedResponseContent( start, limit, total, resourceServers, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java index d145eeb9c..a2835416e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListResourceServerRequestParameters.java @@ -54,7 +54,7 @@ private ListResourceServerRequestParameters( } /** - * @return An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).<br /><b>e.g.</b> <i>../resource-servers?identifiers=id1&identifiers=id2</i> + * @return An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).e.g. ../resource-servers?identifiers=id1&identifiers=id2 */ @JsonIgnore public Optional> getIdentifiers() { @@ -176,7 +176,7 @@ public Builder from(ListResourceServerRequestParameters other) { } /** - *

    An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).<br /><b>e.g.</b> <i>../resource-servers?identifiers=id1&identifiers=id2</i>

    + *

    An optional filter on the resource server identifier. Must be URL encoded and may be specified multiple times (max 10).e.g. ../resource-servers?identifiers=id1&identifiers=id2

    */ @JsonSetter(value = "identifiers", nulls = Nulls.SKIP) public Builder identifiers(@Nullable Optional> identifiers) { @@ -345,5 +345,15 @@ public ListResourceServerRequestParameters build() { return new ListResourceServerRequestParameters( identifiers, page, perPage, includeTotals, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolePermissionsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRolePermissionsOffsetPaginatedResponseContent.java index bc8acae9b..30fbe1b08 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolePermissionsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolePermissionsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListRolePermissionsOffsetPaginatedResponseContent build() { return new ListRolePermissionsOffsetPaginatedResponseContent( start, limit, total, permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRoleUsersPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRoleUsersPaginatedResponseContent.java index a489c2d16..d6db5d087 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRoleUsersPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRoleUsersPaginatedResponseContent.java @@ -116,5 +116,15 @@ public Builder users(List users) { public ListRoleUsersPaginatedResponseContent build() { return new ListRoleUsersPaginatedResponseContent(next, users, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java index 9fbe5e5f1..17f27c3d6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder roles(List roles) { public ListRolesOffsetPaginatedResponseContent build() { return new ListRolesOffsetPaginatedResponseContent(start, limit, total, roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java index a96db8291..4ad04a536 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolesRequestParameters.java @@ -285,5 +285,15 @@ public Builder nameFilter(Nullable nameFilter) { public ListRolesRequestParameters build() { return new ListRolesRequestParameters(perPage, page, includeTotals, nameFilter, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRulesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRulesOffsetPaginatedResponseContent.java index c1a0726c0..8153c03f0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRulesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRulesOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder rules(List rules) { public ListRulesOffsetPaginatedResponseContent build() { return new ListRulesOffsetPaginatedResponseContent(start, limit, total, rules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java index 4175ace55..1a82048ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRulesRequestParameters.java @@ -406,5 +406,15 @@ public ListRulesRequestParameters build() { return new ListRulesRequestParameters( page, perPage, includeTotals, enabled, fields, includeFields, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesPaginatedResponseContent.java index 54a43729b..5326115b6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListSelfServiceProfilesPaginatedResponseContent build() { return new ListSelfServiceProfilesPaginatedResponseContent( start, limit, total, selfServiceProfiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java index 0416c385f..31e7c0023 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListSelfServiceProfilesRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListSelfServiceProfilesRequestParameters build() { return new ListSelfServiceProfilesRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListTokenExchangeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListTokenExchangeProfileResponseContent.java index 6c03ca1f6..282bd45d2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListTokenExchangeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListTokenExchangeProfileResponseContent.java @@ -37,7 +37,7 @@ private ListTokenExchangeProfileResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonProperty("next") public Optional getNext() { @@ -97,7 +97,7 @@ public Builder from(ListTokenExchangeProfileResponseContent other) { } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(Optional next) { @@ -125,5 +125,15 @@ public Builder tokenExchangeProfiles(List t public ListTokenExchangeProfileResponseContent build() { return new ListTokenExchangeProfileResponseContent(next, tokenExchangeProfiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java index 38bd827f2..457efa66e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListUserAttributeProfileRequestParameters build() { return new ListUserAttributeProfileRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileTemplateResponseContent.java index 065719d3e..6ffc4abcd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfileTemplateResponseContent.java @@ -98,5 +98,15 @@ public ListUserAttributeProfileTemplateResponseContent build() { return new ListUserAttributeProfileTemplateResponseContent( userAttributeProfileTemplates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfilesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfilesPaginatedResponseContent.java index b22b02d43..c04371b2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfilesPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAttributeProfilesPaginatedResponseContent.java @@ -125,5 +125,15 @@ public ListUserAttributeProfilesPaginatedResponseContent build() { return new ListUserAttributeProfilesPaginatedResponseContent( next, userAttributeProfiles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserAuthenticationMethodsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserAuthenticationMethodsOffsetPaginatedResponseContent.java index 832aba447..f1b82ae92 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserAuthenticationMethodsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserAuthenticationMethodsOffsetPaginatedResponseContent.java @@ -192,5 +192,15 @@ public ListUserAuthenticationMethodsOffsetPaginatedResponseContent build() { return new ListUserAuthenticationMethodsOffsetPaginatedResponseContent( start, limit, total, authenticators, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java index a99680925..ffe8483aa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierRequestParameters.java @@ -109,6 +109,10 @@ public interface IdentifierStage { public interface _FinalStage { ListUserBlocksByIdentifierRequestParameters build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    If true and Brute Force Protection is enabled and configured to block logins, will return a list of blocked IP addresses. * If true and Brute Force Protection is disabled, will return an empty list.

    @@ -214,5 +218,17 @@ public ListUserBlocksByIdentifierRequestParameters build() { return new ListUserBlocksByIdentifierRequestParameters( identifier, considerBruteForceEnablement, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierResponseContent.java index 1e92989df..ea3a7d9e2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksByIdentifierResponseContent.java @@ -100,5 +100,15 @@ public Builder blockedFor(List blockedFor) { public ListUserBlocksByIdentifierResponseContent build() { return new ListUserBlocksByIdentifierResponseContent(blockedFor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java index d7df16883..2311b54a0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksRequestParameters.java @@ -134,5 +134,15 @@ public Builder considerBruteForceEnablement( public ListUserBlocksRequestParameters build() { return new ListUserBlocksRequestParameters(considerBruteForceEnablement, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksResponseContent.java index 1ac2c96b1..4cbf295d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserBlocksResponseContent.java @@ -99,5 +99,15 @@ public Builder blockedFor(List blockedFor) { public ListUserBlocksResponseContent build() { return new ListUserBlocksResponseContent(blockedFor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserConnectedAccountsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserConnectedAccountsResponseContent.java index c6c74c3af..c2ac50d42 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserConnectedAccountsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserConnectedAccountsResponseContent.java @@ -133,5 +133,15 @@ public Builder next(String next) { public ListUserConnectedAccountsResponseContent build() { return new ListUserConnectedAccountsResponseContent(connectedAccounts, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsOffsetPaginatedResponseContent.java index ae55daad1..d79511899 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder grants(List grants) { public ListUserGrantsOffsetPaginatedResponseContent build() { return new ListUserGrantsOffsetPaginatedResponseContent(start, limit, total, grants, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java index 9ea2cc9f2..d8d34a50f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserGrantsRequestParameters.java @@ -406,5 +406,15 @@ public ListUserGrantsRequestParameters build() { return new ListUserGrantsRequestParameters( perPage, page, includeTotals, userId, clientId, audience, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserOrganizationsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserOrganizationsOffsetPaginatedResponseContent.java index 9c9d1d39a..f9c858512 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserOrganizationsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserOrganizationsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListUserOrganizationsOffsetPaginatedResponseContent build() { return new ListUserOrganizationsOffsetPaginatedResponseContent( start, limit, total, organizations, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserPermissionsOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserPermissionsOffsetPaginatedResponseContent.java index 8cc2bba3e..ed1699859 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserPermissionsOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserPermissionsOffsetPaginatedResponseContent.java @@ -168,5 +168,15 @@ public ListUserPermissionsOffsetPaginatedResponseContent build() { return new ListUserPermissionsOffsetPaginatedResponseContent( start, limit, total, permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserRolesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserRolesOffsetPaginatedResponseContent.java index 80f924308..08619266f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserRolesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserRolesOffsetPaginatedResponseContent.java @@ -167,5 +167,15 @@ public Builder roles(List roles) { public ListUserRolesOffsetPaginatedResponseContent build() { return new ListUserRolesOffsetPaginatedResponseContent(start, limit, total, roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUserSessionsPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUserSessionsPaginatedResponseContent.java index 55c248c5b..5751bd85f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUserSessionsPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUserSessionsPaginatedResponseContent.java @@ -124,5 +124,15 @@ public Builder next(String next) { public ListUserSessionsPaginatedResponseContent build() { return new ListUserSessionsPaginatedResponseContent(sessions, next, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java index c66fe3a64..9ca2159fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersByEmailRequestParameters.java @@ -128,6 +128,10 @@ public interface EmailStage { public interface _FinalStage { ListUsersByEmailRequestParameters build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

    */ @@ -288,5 +292,17 @@ public _FinalStage fields(@Nullable OptionalNullable fields) { public ListUsersByEmailRequestParameters build() { return new ListUsersByEmailRequestParameters(fields, includeFields, email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersOffsetPaginatedResponseContent.java index 6367d2130..3dafb9249 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersOffsetPaginatedResponseContent.java @@ -192,5 +192,15 @@ public ListUsersOffsetPaginatedResponseContent build() { return new ListUsersOffsetPaginatedResponseContent( start, limit, length, total, users, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java index b1d3bf064..6566d5cb5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListUsersRequestParameters.java @@ -98,7 +98,7 @@ public OptionalNullable getIncludeTotals() { } /** - * @return Field to sort by. Use <code>field:order</code> where order is <code>1</code> for ascending and <code>-1</code> for descending. e.g. <code>created_at:1</code> + * @return Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1 */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("sort") @@ -110,7 +110,7 @@ public OptionalNullable getSort() { } /** - * @return Connection filter. Only applies when using <code>search_engine=v1</code>. To filter by connection with <code>search_engine=v2|v3</code>, use <code>q=identities.connection:"connection_name"</code> + * @return Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name" */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("connection") @@ -146,7 +146,7 @@ public OptionalNullable getIncludeFields() { } /** - * @return Query in <a target='_new' href ='http://www.lucenetutorial.com/lucene-query-syntax.html'>Lucene query string syntax</a>. Some query types cannot be used on metadata fields, for details see <a href='https://auth0.com/docs/users/search/v3/query-syntax#searchable-fields'>Searchable Fields</a>. + * @return Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("q") @@ -415,7 +415,7 @@ public Builder includeTotals(Nullable includeTotals) { } /** - *

    Field to sort by. Use <code>field:order</code> where order is <code>1</code> for ascending and <code>-1</code> for descending. e.g. <code>created_at:1</code>

    + *

    Field to sort by. Use field:order where order is 1 for ascending and -1 for descending. e.g. created_at:1

    */ @JsonSetter(value = "sort", nulls = Nulls.SKIP) public Builder sort(@org.jetbrains.annotations.Nullable OptionalNullable sort) { @@ -449,7 +449,7 @@ public Builder sort(Nullable sort) { } /** - *

    Connection filter. Only applies when using <code>search_engine=v1</code>. To filter by connection with <code>search_engine=v2|v3</code>, use <code>q=identities.connection:"connection_name"</code>

    + *

    Connection filter. Only applies when using search_engine=v1. To filter by connection with search_engine=v2|v3, use q=identities.connection:"connection_name"

    */ @JsonSetter(value = "connection", nulls = Nulls.SKIP) public Builder connection(@org.jetbrains.annotations.Nullable OptionalNullable connection) { @@ -551,7 +551,7 @@ public Builder includeFields(Nullable includeFields) { } /** - *

    Query in <a target='_new' href ='http://www.lucenetutorial.com/lucene-query-syntax.html'>Lucene query string syntax</a>. Some query types cannot be used on metadata fields, for details see <a href='https://auth0.com/docs/users/search/v3/query-syntax#searchable-fields'>Searchable Fields</a>.

    + *

    Query in Lucene query string syntax. Some query types cannot be used on metadata fields, for details see Searchable Fields.

    */ @JsonSetter(value = "q", nulls = Nulls.SKIP) public Builder q(@org.jetbrains.annotations.Nullable OptionalNullable q) { @@ -667,5 +667,15 @@ public ListUsersRequestParameters build() { primaryOrder, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ListVerifiableCredentialTemplatesPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListVerifiableCredentialTemplatesPaginatedResponseContent.java index e5b669b78..b3f579125 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListVerifiableCredentialTemplatesPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListVerifiableCredentialTemplatesPaginatedResponseContent.java @@ -40,7 +40,7 @@ private ListVerifiableCredentialTemplatesPaginatedResponseContent( } /** - * @return Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours. + * @return Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours. */ @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("next") @@ -110,7 +110,7 @@ public Builder from(ListVerifiableCredentialTemplatesPaginatedResponseContent ot } /** - *

    Opaque identifier for use with the <i>from</i> query parameter for the next page of results.<br/>This identifier is valid for 24 hours.

    + *

    Opaque identifier for use with the from query parameter for the next page of results.
    This identifier is valid for 24 hours.

    */ @JsonSetter(value = "next", nulls = Nulls.SKIP) public Builder next(@Nullable OptionalNullable next) { @@ -157,5 +157,15 @@ public Builder templates(List templates) { public ListVerifiableCredentialTemplatesPaginatedResponseContent build() { return new ListVerifiableCredentialTemplatesPaginatedResponseContent(next, templates, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Log.java b/src/main/java/com/auth0/client/mgmt/types/Log.java index 27dd1c32b..c717ce514 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Log.java +++ b/src/main/java/com/auth0/client/mgmt/types/Log.java @@ -751,5 +751,15 @@ public Log build() { locationInfo, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogLocationInfo.java b/src/main/java/com/auth0/client/mgmt/types/LogLocationInfo.java index 06eb8de09..1c1a8b2c0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogLocationInfo.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogLocationInfo.java @@ -60,7 +60,7 @@ private LogLocationInfo( } /** - * @return Two-letter <a href="https://www.iso.org/iso-3166-country-codes.html">Alpha-2 ISO 3166-1</a> country code. + * @return Two-letter Alpha-2 ISO 3166-1 country code. */ @JsonProperty("country_code") public Optional getCountryCode() { @@ -68,7 +68,7 @@ public Optional getCountryCode() { } /** - * @return Three-letter <a href="https://www.iso.org/iso-3166-country-codes.html">Alpha-3 ISO 3166-1</a> country code. + * @return Three-letter Alpha-3 ISO 3166-1 country code. */ @JsonProperty("country_code3") public Optional getCountryCode3() { @@ -108,7 +108,7 @@ public Optional getLongitude() { } /** - * @return Time zone name as found in the <a href="https://www.iana.org/time-zones">tz database</a>. + * @return Time zone name as found in the tz database. */ @JsonProperty("time_zone") public Optional getTimeZone() { @@ -203,7 +203,7 @@ public Builder from(LogLocationInfo other) { } /** - *

    Two-letter <a href="https://www.iso.org/iso-3166-country-codes.html">Alpha-2 ISO 3166-1</a> country code.

    + *

    Two-letter Alpha-2 ISO 3166-1 country code.

    */ @JsonSetter(value = "country_code", nulls = Nulls.SKIP) public Builder countryCode(Optional countryCode) { @@ -217,7 +217,7 @@ public Builder countryCode(String countryCode) { } /** - *

    Three-letter <a href="https://www.iso.org/iso-3166-country-codes.html">Alpha-3 ISO 3166-1</a> country code.

    + *

    Three-letter Alpha-3 ISO 3166-1 country code.

    */ @JsonSetter(value = "country_code3", nulls = Nulls.SKIP) public Builder countryCode3(Optional countryCode3) { @@ -287,7 +287,7 @@ public Builder longitude(Double longitude) { } /** - *

    Time zone name as found in the <a href="https://www.iana.org/time-zones">tz database</a>.

    + *

    Time zone name as found in the tz database.

    */ @JsonSetter(value = "time_zone", nulls = Nulls.SKIP) public Builder timeZone(Optional timeZone) { @@ -326,5 +326,15 @@ public LogLocationInfo build() { continentCode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogSecurityContext.java b/src/main/java/com/auth0/client/mgmt/types/LogSecurityContext.java index d3e305a6b..923410019 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogSecurityContext.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogSecurityContext.java @@ -125,5 +125,15 @@ public Builder ja4(String ja4) { public LogSecurityContext build() { return new LogSecurityContext(ja3, ja4, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogResponseSchema.java index 4cd6f74d0..76ebaf056 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamDatadogResponseSchema build() { return new LogStreamDatadogResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java index 98ca3b2d4..3aec249fe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamDatadogSink.java @@ -89,6 +89,10 @@ public interface DatadogRegionStage { public interface _FinalStage { LogStreamDatadogSink build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -132,5 +136,17 @@ public _FinalStage datadogRegion(@NotNull LogStreamDatadogRegionEnum datadogRegi public LogStreamDatadogSink build() { return new LogStreamDatadogSink(datadogApiKey, datadogRegion, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeResponseSchema.java index 6a4554315..9b657fa64 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeResponseSchema.java @@ -289,5 +289,15 @@ public LogStreamEventBridgeResponseSchema build() { return new LogStreamEventBridgeResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java index 30d1188dc..9bb5bad15 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventBridgeSink.java @@ -108,6 +108,10 @@ public interface AwsRegionStage { public interface _FinalStage { LogStreamEventBridgeSink build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    AWS EventBridge partner event source

    */ @@ -180,5 +184,17 @@ public _FinalStage awsPartnerEventSource(Optional awsPartnerEventSource) public LogStreamEventBridgeSink build() { return new LogStreamEventBridgeSink(awsAccountId, awsRegion, awsPartnerEventSource, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridResponseSchema.java index 269cd1f98..889a79755 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamEventGridResponseSchema build() { return new LogStreamEventGridResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java index f15163dd5..b77dd9f82 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamEventGridSink.java @@ -129,6 +129,10 @@ public interface AzureResourceGroupStage { public interface _FinalStage { LogStreamEventGridSink build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Partner Topic

    */ @@ -219,5 +223,17 @@ public LogStreamEventGridSink build() { return new LogStreamEventGridSink( azureSubscriptionId, azureRegion, azureResourceGroup, azurePartnerTopic, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamFilter.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamFilter.java index b970c400a..7ce5a4ca7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamFilter.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamFilter.java @@ -116,5 +116,15 @@ public Builder name(LogStreamFilterGroupNameEnum name) { public LogStreamFilter build() { return new LogStreamFilter(type, name, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpResponseSchema.java index 7ca4ad744..b75545226 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamHttpResponseSchema build() { return new LogStreamHttpResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java index 73ec671fe..2101e54cb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamHttpSink.java @@ -136,6 +136,10 @@ public interface HttpEndpointStage { public interface _FinalStage { LogStreamHttpSink build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    HTTP Authorization header

    */ @@ -284,5 +288,17 @@ public LogStreamHttpSink build() { httpCustomHeaders, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelResponseSchema.java index f1ec52dbe..a5c2eec4e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamMixpanelResponseSchema build() { return new LogStreamMixpanelResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java index 0ca307704..27482603d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSink.java @@ -137,6 +137,10 @@ public interface MixpanelServiceAccountPasswordStage { public interface _FinalStage { LogStreamMixpanelSink build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -223,5 +227,17 @@ public LogStreamMixpanelSink build() { mixpanelServiceAccountPassword, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java index c77a29061..b1e5e7b57 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamMixpanelSinkPatch.java @@ -132,6 +132,10 @@ public interface MixpanelServiceAccountUsernameStage { public interface _FinalStage { LogStreamMixpanelSinkPatch build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Mixpanel Service Account Password

    */ @@ -226,5 +230,17 @@ public LogStreamMixpanelSinkPatch build() { mixpanelServiceAccountPassword, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamPiiConfig.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamPiiConfig.java index 7db276a56..a3eb4547b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamPiiConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamPiiConfig.java @@ -151,5 +151,15 @@ public Builder algorithm(LogStreamPiiAlgorithmEnum algorithm) { public LogStreamPiiConfig build() { return new LogStreamPiiConfig(logFields, method, algorithm, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentResponseSchema.java index e1f540cd7..14af1d9c3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamSegmentResponseSchema build() { return new LogStreamSegmentResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSink.java index 26b9a8047..3d12642b8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSink.java @@ -97,5 +97,15 @@ public Builder segmentWriteKey(String segmentWriteKey) { public LogStreamSegmentSink build() { return new LogStreamSegmentSink(segmentWriteKey, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java index b349b869f..7ec6a3061 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSegmentSinkWriteKey.java @@ -76,6 +76,10 @@ public interface SegmentWriteKeyStage { public interface _FinalStage { LogStreamSegmentSinkWriteKey build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage segmentWriteKey(@NotNull String segmentWriteKey) { public LogStreamSegmentSinkWriteKey build() { return new LogStreamSegmentSinkWriteKey(segmentWriteKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkResponseSchema.java index fb9746a58..f0ee836fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamSplunkResponseSchema build() { return new LogStreamSplunkResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java index 46a046528..6d099dbdc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSplunkSink.java @@ -138,6 +138,10 @@ public interface SplunkSecureStage { public interface _FinalStage { LogStreamSplunkSink build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -217,5 +221,17 @@ public _FinalStage splunkSecure(boolean splunkSecure) { public LogStreamSplunkSink build() { return new LogStreamSplunkSink(splunkDomain, splunkPort, splunkToken, splunkSecure, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoResponseSchema.java index 85cd136e1..9053b1d63 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoResponseSchema.java @@ -288,5 +288,15 @@ public LogStreamSumoResponseSchema build() { return new LogStreamSumoResponseSchema( id, name, status, type, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java index 5b26ddfea..8c8bcaeae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java +++ b/src/main/java/com/auth0/client/mgmt/types/LogStreamSumoSink.java @@ -76,6 +76,10 @@ public interface SumoSourceAddressStage { public interface _FinalStage { LogStreamSumoSink build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage sumoSourceAddress(@NotNull String sumoSourceAddress) { public LogStreamSumoSink build() { return new LogStreamSumoSink(sumoSourceAddress, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationProperties.java b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationProperties.java index db2e7af83..b7d110bb8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationProperties.java @@ -742,5 +742,15 @@ public MdlPresentationProperties build() { givenNameNationalCharacter, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequest.java b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequest.java index e9eb58149..f7fd7fb5a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequest.java @@ -71,6 +71,10 @@ public interface OrgIso1801351MDlStage { public interface _FinalStage { MdlPresentationRequest build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage orgIso1801351MDl(@NotNull MdlPresentationRequestProperties or public MdlPresentationRequest build() { return new MdlPresentationRequest(orgIso1801351MDl, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequestProperties.java b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequestProperties.java index dde377856..fbf53396f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequestProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/MdlPresentationRequestProperties.java @@ -71,6 +71,10 @@ public interface OrgIso1801351Stage { public interface _FinalStage { MdlPresentationRequestProperties build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage orgIso1801351(@NotNull MdlPresentationProperties orgIso180135 public MdlPresentationRequestProperties build() { return new MdlPresentationRequestProperties(orgIso1801351, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLogin.java b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLogin.java index bef1b4f76..3d4f92d74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLogin.java +++ b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLogin.java @@ -139,5 +139,15 @@ public Builder google(NativeSocialLoginGoogle google) { public NativeSocialLogin build() { return new NativeSocialLogin(apple, facebook, google, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginApple.java b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginApple.java index ba6330302..e4dc474f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginApple.java @@ -97,5 +97,15 @@ public Builder enabled(Boolean enabled) { public NativeSocialLoginApple build() { return new NativeSocialLoginApple(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginFacebook.java b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginFacebook.java index 0af39c46e..46c0195fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginFacebook.java @@ -97,5 +97,15 @@ public Builder enabled(Boolean enabled) { public NativeSocialLoginFacebook build() { return new NativeSocialLoginFacebook(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginGoogle.java b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginGoogle.java index be456d506..34d044854 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginGoogle.java +++ b/src/main/java/com/auth0/client/mgmt/types/NativeSocialLoginGoogle.java @@ -97,5 +97,15 @@ public Builder enabled(Boolean enabled) { public NativeSocialLoginGoogle build() { return new NativeSocialLoginGoogle(enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclAction.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclAction.java index 4a59f950e..970cae0af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclAction.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclAction.java @@ -195,5 +195,15 @@ public Builder redirectUri(String redirectUri) { public NetworkAclAction build() { return new NetworkAclAction(block, allow, log, redirect, redirectUri, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java index d58a63488..2b988d3e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclMatch.java @@ -279,5 +279,15 @@ public NetworkAclMatch build() { userAgents, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclRule.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclRule.java index 8511f8a3d..b32ca5bc6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclRule.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclRule.java @@ -109,6 +109,10 @@ public interface ScopeStage { public interface _FinalStage { NetworkAclRule build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage match(Optional match); _FinalStage match(NetworkAclMatch match); @@ -186,5 +190,17 @@ public _FinalStage match(Optional match) { public NetworkAclRule build() { return new NetworkAclRule(action, match, notMatch, scope, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/NetworkAclsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/NetworkAclsResponseContent.java index 6ab74dbe1..2c3f4ff81 100644 --- a/src/main/java/com/auth0/client/mgmt/types/NetworkAclsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/NetworkAclsResponseContent.java @@ -251,5 +251,15 @@ public NetworkAclsResponseContent build() { return new NetworkAclsResponseContent( id, description, active, priority, rule, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Organization.java b/src/main/java/com/auth0/client/mgmt/types/Organization.java index 4234f9c91..d72df1ae8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Organization.java +++ b/src/main/java/com/auth0/client/mgmt/types/Organization.java @@ -232,5 +232,15 @@ public Builder tokenQuota(TokenQuota tokenQuota) { public Organization build() { return new Organization(id, name, displayName, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationBranding.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationBranding.java index db58bbc39..3503249e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationBranding.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationBranding.java @@ -122,5 +122,15 @@ public Builder colors(OrganizationBrandingColors colors) { public OrganizationBranding build() { return new OrganizationBranding(logoUrl, colors, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java index f4935915c..2a995e870 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationBrandingColors.java @@ -95,6 +95,10 @@ public interface PageBackgroundStage { public interface _FinalStage { OrganizationBrandingColors build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -143,5 +147,17 @@ public _FinalStage pageBackground(@NotNull String pageBackground) { public OrganizationBrandingColors build() { return new OrganizationBrandingColors(primary, pageBackground, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationClientGrant.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationClientGrant.java index bb281b935..b1fd2578d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationClientGrant.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationClientGrant.java @@ -246,5 +246,15 @@ public OrganizationClientGrant build() { return new OrganizationClientGrant( id, clientId, audience, scope, organizationUsage, allowAnyOrganization, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationConnection.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationConnection.java index 83b16d23f..ea4710664 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationConnection.java @@ -224,5 +224,15 @@ public OrganizationConnection build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationConnectionInformation.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationConnectionInformation.java index 647c645d6..a4917e594 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationConnectionInformation.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationConnectionInformation.java @@ -126,5 +126,15 @@ public Builder strategy(String strategy) { public OrganizationConnectionInformation build() { return new OrganizationConnectionInformation(name, strategy, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java index aa53440ff..ea1130c36 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationDiscoveryDomain.java @@ -174,6 +174,10 @@ public interface VerificationHostStage { public interface _FinalStage { OrganizationDiscoveryDomain build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -299,5 +303,17 @@ public OrganizationDiscoveryDomain build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationEnabledConnection.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationEnabledConnection.java index e9d82484e..67ee8b113 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationEnabledConnection.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationEnabledConnection.java @@ -224,5 +224,15 @@ public OrganizationEnabledConnection build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitation.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitation.java index 4343fb85a..ad0923c73 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitation.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitation.java @@ -464,5 +464,15 @@ public OrganizationInvitation build() { ticketId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java index 8431ecd16..2f2e6d300 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInvitee.java @@ -76,6 +76,10 @@ public interface EmailStage { public interface _FinalStage { OrganizationInvitationInvitee build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage email(@NotNull String email) { public OrganizationInvitationInvitee build() { return new OrganizationInvitationInvitee(email, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java index c144190bd..443f5b4cf 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationInvitationInviter.java @@ -76,6 +76,10 @@ public interface NameStage { public interface _FinalStage { OrganizationInvitationInviter build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage name(@NotNull String name) { public OrganizationInvitationInviter build() { return new OrganizationInvitationInviter(name, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationMember.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationMember.java index 4ffc171d3..517224b07 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationMember.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationMember.java @@ -214,5 +214,15 @@ public Builder roles(List roles) { public OrganizationMember build() { return new OrganizationMember(userId, picture, name, email, roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberRole.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberRole.java index fe271a84f..426702ee5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberRole.java +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationMemberRole.java @@ -126,5 +126,15 @@ public Builder name(String name) { public OrganizationMemberRole build() { return new OrganizationMemberRole(id, name, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PartialPhoneTemplateContent.java b/src/main/java/com/auth0/client/mgmt/types/PartialPhoneTemplateContent.java index 2b5d425e0..a41ac21fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PartialPhoneTemplateContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PartialPhoneTemplateContent.java @@ -120,5 +120,15 @@ public Builder body(PhoneTemplateBody body) { public PartialPhoneTemplateContent build() { return new PartialPhoneTemplateContent(from, body, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchClientCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/PatchClientCredentialResponseContent.java index 2e1b9f47e..4a3ad584f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchClientCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchClientCredentialResponseContent.java @@ -380,5 +380,15 @@ public PatchClientCredentialResponseContent build() { expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PatchSupplementalSignalsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/PatchSupplementalSignalsResponseContent.java index 7911c0f9e..5b91db9f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PatchSupplementalSignalsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PatchSupplementalSignalsResponseContent.java @@ -99,5 +99,15 @@ public Builder akamaiEnabled(Boolean akamaiEnabled) { public PatchSupplementalSignalsResponseContent build() { return new PatchSupplementalSignalsResponseContent(akamaiEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java b/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java index a92f96555..f889d30ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java +++ b/src/main/java/com/auth0/client/mgmt/types/PermissionRequestPayload.java @@ -96,6 +96,10 @@ public interface PermissionNameStage { public interface _FinalStage { PermissionRequestPayload build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -145,5 +149,17 @@ public _FinalStage permissionName(@NotNull String permissionName) { public PermissionRequestPayload build() { return new PermissionRequestPayload(resourceServerIdentifier, permissionName, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PermissionsResponsePayload.java b/src/main/java/com/auth0/client/mgmt/types/PermissionsResponsePayload.java index 8283fb3c3..e62770598 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PermissionsResponsePayload.java +++ b/src/main/java/com/auth0/client/mgmt/types/PermissionsResponsePayload.java @@ -191,5 +191,15 @@ public PermissionsResponsePayload build() { return new PermissionsResponsePayload( resourceServerIdentifier, permissionName, resourceServerName, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java b/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java index b89b02963..080c3e3ed 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java @@ -147,5 +147,15 @@ public Builder signup(SignupVerified signup) { public PhoneAttribute build() { return new PhoneAttribute(identifier, profileRequired, signup, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneProviderSchemaMasked.java b/src/main/java/com/auth0/client/mgmt/types/PhoneProviderSchemaMasked.java index dd458718c..b479713a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneProviderSchemaMasked.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneProviderSchemaMasked.java @@ -166,6 +166,10 @@ public interface NameStage { public interface _FinalStage { PhoneProviderSchemaMasked build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -374,5 +378,17 @@ public PhoneProviderSchemaMasked build() { return new PhoneProviderSchemaMasked( id, tenant, name, channel, disabled, configuration, createdAt, updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java index b716bbf5f..6c24726ff 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplate.java @@ -154,6 +154,10 @@ public interface DisabledStage { public interface _FinalStage { PhoneTemplate build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -276,5 +280,17 @@ public _FinalStage channel(Optional channel) { public PhoneTemplate build() { return new PhoneTemplate(id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateBody.java b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateBody.java index 32949a808..1c6a81fb2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateBody.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateBody.java @@ -125,5 +125,15 @@ public Builder voice(String voice) { public PhoneTemplateBody build() { return new PhoneTemplateBody(text, voice, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateContent.java b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateContent.java index e6f6934fb..46f5c84a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneTemplateContent.java @@ -145,5 +145,15 @@ public Builder body(PhoneTemplateBody body) { public PhoneTemplateContent build() { return new PhoneTemplateContent(syntax, from, body, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PostClientCredentialResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/PostClientCredentialResponseContent.java index 17054e06f..f180c08fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PostClientCredentialResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/PostClientCredentialResponseContent.java @@ -380,5 +380,15 @@ public PostClientCredentialResponseContent build() { expiresAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java index 123f8d624..becc5f202 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/PublicKeyCredential.java @@ -146,6 +146,10 @@ public interface PemStage { public interface _FinalStage { PublicKeyCredential build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for a credential.

    */ @@ -299,5 +303,17 @@ public PublicKeyCredential build() { return new PublicKeyCredential( credentialType, name, pem, alg, parseExpiryFromCert, expiresAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenDevice.java b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenDevice.java index cf85639bb..6aa4dbbc0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenDevice.java +++ b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenDevice.java @@ -251,5 +251,15 @@ public RefreshTokenDevice build() { return new RefreshTokenDevice( initialIp, initialAsn, initialUserAgent, lastIp, lastAsn, lastUserAgent, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResourceServer.java b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResourceServer.java index 424d49153..f30afe4f7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResourceServer.java +++ b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResourceServer.java @@ -126,5 +126,15 @@ public Builder scopes(String scopes) { public RefreshTokenResourceServer build() { return new RefreshTokenResourceServer(audience, scopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResponseContent.java index 21aa1565c..2becee7fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RefreshTokenResponseContent.java @@ -477,5 +477,15 @@ public RefreshTokenResponseContent build() { lastExchangedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RegenerateUsersRecoveryCodeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RegenerateUsersRecoveryCodeResponseContent.java index e20b46a0e..09ecfbebc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RegenerateUsersRecoveryCodeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RegenerateUsersRecoveryCodeResponseContent.java @@ -99,5 +99,15 @@ public Builder recoveryCode(String recoveryCode) { public RegenerateUsersRecoveryCodeResponseContent build() { return new RegenerateUsersRecoveryCodeResponseContent(recoveryCode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java index 214459bc1..4e8a71ac1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResetPhoneTemplateResponseContent.java @@ -154,6 +154,10 @@ public interface DisabledStage { public interface _FinalStage { ResetPhoneTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -277,5 +281,17 @@ public ResetPhoneTemplateResponseContent build() { return new ResetPhoneTemplateResponseContent( id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java index 6a203528b..29d88015d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServer.java @@ -737,5 +737,15 @@ public ResourceServer build() { clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java index 96b577cda..b3f8e753c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerProofOfPossession.java @@ -103,6 +103,10 @@ public interface RequiredStage { public interface _FinalStage { ResourceServerProofOfPossession build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage requiredFor(Optional requiredFor); _FinalStage requiredFor(ResourceServerProofOfPossessionRequiredForEnum requiredFor); @@ -165,5 +169,17 @@ public _FinalStage requiredFor(Optional additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java index 483429c0e..625eb5f7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerScope.java @@ -90,6 +90,10 @@ public interface ValueStage { public interface _FinalStage { ResourceServerScope build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    User-friendly description of this scope.

    */ @@ -152,5 +156,17 @@ public _FinalStage description(Optional description) { public ResourceServerScope build() { return new ResourceServerScope(value, description, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorization.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorization.java index 4f2b68694..cfcde84b1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorization.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorization.java @@ -117,5 +117,15 @@ public Builder client(ResourceServerSubjectTypeAuthorizationClient client) { public ResourceServerSubjectTypeAuthorization build() { return new ResourceServerSubjectTypeAuthorization(user, client, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationClient.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationClient.java index 57ce7692c..0895cbea4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationClient.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationClient.java @@ -94,5 +94,15 @@ public Builder policy(ResourceServerSubjectTypeAuthorizationClientPolicyEnum pol public ResourceServerSubjectTypeAuthorizationClient build() { return new ResourceServerSubjectTypeAuthorizationClient(policy, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationUser.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationUser.java index ff6983cb3..d2ce3c092 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerSubjectTypeAuthorizationUser.java @@ -94,5 +94,15 @@ public Builder policy(ResourceServerSubjectTypeAuthorizationUserPolicyEnum polic public ResourceServerSubjectTypeAuthorizationUser build() { return new ResourceServerSubjectTypeAuthorizationUser(policy, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryption.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryption.java index 40425e4b0..a08068ba5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryption.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryption.java @@ -85,6 +85,10 @@ public interface EncryptionKeyStage { public interface _FinalStage { ResourceServerTokenEncryption build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -123,5 +127,17 @@ public _FinalStage encryptionKey(@NotNull ResourceServerTokenEncryptionKey encry public ResourceServerTokenEncryption build() { return new ResourceServerTokenEncryption(format, encryptionKey, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java index 6715e0f2c..99f7ba6aa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ResourceServerTokenEncryptionKey.java @@ -118,6 +118,10 @@ public interface PemStage { public interface _FinalStage { ResourceServerTokenEncryptionKey build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Name of the encryption key.

    */ @@ -220,5 +224,17 @@ public _FinalStage name(Optional name) { public ResourceServerTokenEncryptionKey build() { return new ResourceServerTokenEncryptionKey(name, alg, kid, pem, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RevokeUserAccessRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/RevokeUserAccessRequestContent.java index 7c0ebc5d8..d65c1c8ba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RevokeUserAccessRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RevokeUserAccessRequestContent.java @@ -128,5 +128,15 @@ public Builder preserveRefreshTokens(Boolean preserveRefreshTokens) { public RevokeUserAccessRequestContent build() { return new RevokeUserAccessRequestContent(sessionId, preserveRefreshTokens, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java index 480903d04..166b2049b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RevokedSigningKeysResponseContent.java @@ -94,6 +94,10 @@ public interface KidStage { public interface _FinalStage { RevokedSigningKeysResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage kid(@NotNull String kid) { public RevokedSigningKeysResponseContent build() { return new RevokedSigningKeysResponseContent(cert, kid, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Role.java b/src/main/java/com/auth0/client/mgmt/types/Role.java index 6fb817d6a..f0b7d092b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Role.java +++ b/src/main/java/com/auth0/client/mgmt/types/Role.java @@ -157,5 +157,15 @@ public Builder description(String description) { public Role build() { return new Role(id, name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RoleUser.java b/src/main/java/com/auth0/client/mgmt/types/RoleUser.java index 7e84435cc..a3cdbef97 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RoleUser.java +++ b/src/main/java/com/auth0/client/mgmt/types/RoleUser.java @@ -189,5 +189,15 @@ public Builder email(String email) { public RoleUser build() { return new RoleUser(userId, picture, name, email, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RollbackActionModuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RollbackActionModuleResponseContent.java index adf39888b..5f173c60a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RollbackActionModuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RollbackActionModuleResponseContent.java @@ -419,5 +419,15 @@ public RollbackActionModuleResponseContent build() { latestVersion, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java index 8f14ada6f..af4f13d25 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateClientSecretResponseContent.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public RotateClientSecretResponseContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysRequestContent.java index 82394286a..7bccf4e50 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionKeysRequestContent.java @@ -93,5 +93,15 @@ public Builder signingAlg(RotateConnectionKeysSigningAlgEnum signingAlg) { public RotateConnectionKeysRequestContent build() { return new RotateConnectionKeysRequestContent(signingAlg, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java index ffbdd5bad..816c1a3e6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateConnectionsKeysResponseContent.java @@ -210,6 +210,10 @@ public interface ThumbprintStage { public interface _FinalStage { RotateConnectionsKeysResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The public certificate of the signing key in pkcs7 format

    */ @@ -418,5 +422,17 @@ public RotateConnectionsKeysResponseContent build() { return new RotateConnectionsKeysResponseContent( kid, cert, pkcs, next, fingerprint, thumbprint, algorithm, keyUse, subjectDn, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java index 1ab5d2e5f..7e4100239 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/RotateSigningKeysResponseContent.java @@ -94,6 +94,10 @@ public interface KidStage { public interface _FinalStage { RotateSigningKeysResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage kid(@NotNull String kid) { public RotateSigningKeysResponseContent build() { return new RotateSigningKeysResponseContent(cert, kid, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/Rule.java b/src/main/java/com/auth0/client/mgmt/types/Rule.java index f2dabb288..ab4bc5ce5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Rule.java +++ b/src/main/java/com/auth0/client/mgmt/types/Rule.java @@ -249,5 +249,15 @@ public Builder stage(String stage) { public Rule build() { return new Rule(name, id, enabled, script, order, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/RulesConfig.java b/src/main/java/com/auth0/client/mgmt/types/RulesConfig.java index 356148acf..5dffff385 100644 --- a/src/main/java/com/auth0/client/mgmt/types/RulesConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/RulesConfig.java @@ -97,5 +97,15 @@ public Builder key(String key) { public RulesConfig build() { return new RulesConfig(key, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ScimMappingItem.java b/src/main/java/com/auth0/client/mgmt/types/ScimMappingItem.java index 982709a3e..1203d68d2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ScimMappingItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ScimMappingItem.java @@ -125,5 +125,15 @@ public Builder scim(String scim) { public ScimMappingItem build() { return new ScimMappingItem(auth0, scim, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/ScimTokenItem.java b/src/main/java/com/auth0/client/mgmt/types/ScimTokenItem.java index 8bfce20a3..306e8a001 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ScimTokenItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/ScimTokenItem.java @@ -220,5 +220,15 @@ public Builder lastUsedAt(String lastUsedAt) { public ScimTokenItem build() { return new ScimTokenItem(tokenId, scopes, createdAt, validUntil, lastUsedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfile.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfile.java index df0d55966..6e22be292 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfile.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfile.java @@ -354,5 +354,15 @@ public SelfServiceProfile build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingColors.java index a7b65cd3c..41d81781f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingColors.java @@ -70,6 +70,10 @@ public interface PrimaryStage { public interface _FinalStage { SelfServiceProfileBrandingColors build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage primary(@NotNull String primary) { public SelfServiceProfileBrandingColors build() { return new SelfServiceProfileBrandingColors(primary, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingProperties.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingProperties.java index 3ece91ff2..bc883f808 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileBrandingProperties.java @@ -117,5 +117,15 @@ public Builder colors(SelfServiceProfileBrandingColors colors) { public SelfServiceProfileBrandingProperties build() { return new SelfServiceProfileBrandingProperties(logoUrl, colors, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java index 00ce38c87..19cd02a78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionConfig.java @@ -72,7 +72,7 @@ public Optional getDisplayName() { } /** - * @return <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.) + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) */ @JsonProperty("is_domain_connection") public Optional getIsDomainConnection() { @@ -80,7 +80,7 @@ public Optional getIsDomainConnection() { } /** - * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.) + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) */ @JsonProperty("show_as_button") public Optional getShowAsButton() { @@ -155,6 +155,10 @@ public interface NameStage { public interface _FinalStage { SelfServiceProfileSsoTicketConnectionConfig build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Connection name used in the new universal login experience

    */ @@ -163,14 +167,14 @@ public interface _FinalStage { _FinalStage displayName(String displayName); /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ _FinalStage isDomainConnection(Optional isDomainConnection); _FinalStage isDomainConnection(Boolean isDomainConnection); /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ _FinalStage showAsButton(Optional showAsButton); @@ -281,7 +285,7 @@ public _FinalStage metadata(Optional>> meta } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -291,7 +295,7 @@ public _FinalStage showAsButton(Boolean showAsButton) { } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ @java.lang.Override @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) @@ -301,7 +305,7 @@ public _FinalStage showAsButton(Optional showAsButton) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -311,7 +315,7 @@ public _FinalStage isDomainConnection(Boolean isDomainConnection) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ @java.lang.Override @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) @@ -345,5 +349,17 @@ public SelfServiceProfileSsoTicketConnectionConfig build() { return new SelfServiceProfileSsoTicketConnectionConfig( name, displayName, isDomainConnection, showAsButton, metadata, options, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java index ecd00be80..488c85639 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketConnectionOptions.java @@ -222,5 +222,15 @@ public SelfServiceProfileSsoTicketConnectionOptions build() { return new SelfServiceProfileSsoTicketConnectionOptions( iconUrl, domainAliases, idpinitiated, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketDomainAliasesConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketDomainAliasesConfig.java index 94a640d7f..df9496f43 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketDomainAliasesConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketDomainAliasesConfig.java @@ -73,6 +73,10 @@ public interface DomainVerificationStage { public interface _FinalStage { SelfServiceProfileSsoTicketDomainAliasesConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -102,5 +106,17 @@ public _FinalStage domainVerification( public SelfServiceProfileSsoTicketDomainAliasesConfig build() { return new SelfServiceProfileSsoTicketDomainAliasesConfig(domainVerification, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java index b84285960..617b8d170 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketEnabledOrganization.java @@ -108,6 +108,10 @@ public interface OrganizationIdStage { public interface _FinalStage { SelfServiceProfileSsoTicketEnabledOrganization build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    When true, all users that log in with this connection will be automatically granted membership in the organization. When false, users must be granted membership in the organization before logging in with this connection.

    */ @@ -201,5 +205,17 @@ public SelfServiceProfileSsoTicketEnabledOrganization build() { return new SelfServiceProfileSsoTicketEnabledOrganization( organizationId, assignMembershipOnLogin, showAsButton, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java index a9454e976..a00467d23 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketGoogleWorkspaceConfig.java @@ -77,6 +77,10 @@ public interface SyncUsersStage { public interface _FinalStage { SelfServiceProfileSsoTicketGoogleWorkspaceConfig build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage syncUsers(boolean syncUsers) { public SelfServiceProfileSsoTicketGoogleWorkspaceConfig build() { return new SelfServiceProfileSsoTicketGoogleWorkspaceConfig(syncUsers, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketIdpInitiatedOptions.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketIdpInitiatedOptions.java index dff7baef3..59ef548f4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketIdpInitiatedOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketIdpInitiatedOptions.java @@ -52,7 +52,7 @@ public Optional getEnabled() { } /** - * @return Default application <code>client_id</code> user is redirected to after validated SAML response + * @return Default application client_id user is redirected to after validated SAML response */ @JsonProperty("client_id") public Optional getClientId() { @@ -65,7 +65,7 @@ public Optional getCl } /** - * @return Query string options to customize the behaviour for OpenID Connect when <code>idpinitiated.client_protocol</code> is <code>oauth2</code>. Allowed parameters: <code>redirect_uri</code>, <code>scope</code>, <code>response_type</code>. For example, <code>redirect_uri=https://jwt.io&scope=openid email&response_type=token</code> + * @return Query string options to customize the behaviour for OpenID Connect when idpinitiated.client_protocol is oauth2. Allowed parameters: redirect_uri, scope, response_type. For example, redirect_uri=https://jwt.io&scope=openid email&response_type=token */ @JsonProperty("client_authorizequery") public Optional getClientAuthorizequery() { @@ -143,7 +143,7 @@ public Builder enabled(Boolean enabled) { } /** - *

    Default application <code>client_id</code> user is redirected to after validated SAML response

    + *

    Default application client_id user is redirected to after validated SAML response

    */ @JsonSetter(value = "client_id", nulls = Nulls.SKIP) public Builder clientId(Optional clientId) { @@ -169,7 +169,7 @@ public Builder clientProtocol(SelfServiceProfileSsoTicketIdpInitiatedClientProto } /** - *

    Query string options to customize the behaviour for OpenID Connect when <code>idpinitiated.client_protocol</code> is <code>oauth2</code>. Allowed parameters: <code>redirect_uri</code>, <code>scope</code>, <code>response_type</code>. For example, <code>redirect_uri=https://jwt.io&scope=openid email&response_type=token</code>

    + *

    Query string options to customize the behaviour for OpenID Connect when idpinitiated.client_protocol is oauth2. Allowed parameters: redirect_uri, scope, response_type. For example, redirect_uri=https://jwt.io&scope=openid email&response_type=token

    */ @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) public Builder clientAuthorizequery(Optional clientAuthorizequery) { @@ -186,5 +186,15 @@ public SelfServiceProfileSsoTicketIdpInitiatedOptions build() { return new SelfServiceProfileSsoTicketIdpInitiatedOptions( enabled, clientId, clientProtocol, clientAuthorizequery, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningConfig.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningConfig.java index 158f23608..ddebb9a1f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningConfig.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileSsoTicketProvisioningConfig.java @@ -189,5 +189,15 @@ public SelfServiceProfileSsoTicketProvisioningConfig build() { return new SelfServiceProfileSsoTicketProvisioningConfig( scopes, googleWorkspace, tokenLifetime, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java index 0228f1414..c53f14184 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/SelfServiceProfileUserAttribute.java @@ -113,6 +113,10 @@ public interface IsOptionalStage { public interface _FinalStage { SelfServiceProfileUserAttribute build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -176,5 +180,17 @@ public _FinalStage isOptional(boolean isOptional) { public SelfServiceProfileUserAttribute build() { return new SelfServiceProfileUserAttribute(name, description, isOptional, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignal.java b/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignal.java index 0f3409d56..13fc734e3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignal.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignal.java @@ -151,5 +151,15 @@ public Builder type(String type) { public SessionAuthenticationSignal build() { return new SessionAuthenticationSignal(name, timestamp, type, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignals.java b/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignals.java index d12ab5d88..fe3d2397d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionAuthenticationSignals.java @@ -99,5 +99,15 @@ public Builder methods(List methods) { public SessionAuthenticationSignals build() { return new SessionAuthenticationSignals(methods, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionClientMetadata.java b/src/main/java/com/auth0/client/mgmt/types/SessionClientMetadata.java index 1d841f73b..c323ea0fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionClientMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionClientMetadata.java @@ -97,5 +97,15 @@ public Builder clientId(String clientId) { public SessionClientMetadata build() { return new SessionClientMetadata(clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionCookieMetadata.java b/src/main/java/com/auth0/client/mgmt/types/SessionCookieMetadata.java index 459ef0888..e82c18f5b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionCookieMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionCookieMetadata.java @@ -92,5 +92,15 @@ public Builder mode(SessionCookieMetadataModeEnum mode) { public SessionCookieMetadata build() { return new SessionCookieMetadata(mode, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionCookieSchema.java b/src/main/java/com/auth0/client/mgmt/types/SessionCookieSchema.java index 68e8bd009..d5b66a27e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionCookieSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionCookieSchema.java @@ -70,6 +70,10 @@ public interface ModeStage { public interface _FinalStage { SessionCookieSchema build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage mode(@NotNull SessionCookieModeEnum mode) { public SessionCookieSchema build() { return new SessionCookieSchema(mode, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionDeviceMetadata.java b/src/main/java/com/auth0/client/mgmt/types/SessionDeviceMetadata.java index 1da1dccac..577e1ae58 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionDeviceMetadata.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionDeviceMetadata.java @@ -302,5 +302,15 @@ public SessionDeviceMetadata build() { return new SessionDeviceMetadata( initialUserAgent, initialIp, initialAsn, lastUserAgent, lastIp, lastAsn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java index d9d9ddc12..49a66ea10 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SessionResponseContent.java @@ -460,5 +460,15 @@ public SessionResponseContent build() { sessionMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetCustomSigningKeysResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetCustomSigningKeysResponseContent.java index 41989a253..cc67148fa 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetCustomSigningKeysResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetCustomSigningKeysResponseContent.java @@ -100,5 +100,15 @@ public Builder keys(List keys) { public SetCustomSigningKeysResponseContent build() { return new SetCustomSigningKeysResponseContent(keys, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateRequestContent.java index 6932d5194..f3fe4d50c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateRequestContent.java @@ -261,6 +261,10 @@ public interface TemplateStage { public interface _FinalStage { SetEmailTemplateRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Body of the email template.

    */ @@ -776,5 +780,17 @@ public SetEmailTemplateRequestContent build() { enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateResponseContent.java index 12b45012d..4b571da8a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetEmailTemplateResponseContent.java @@ -261,6 +261,10 @@ public interface TemplateStage { public interface _FinalStage { SetEmailTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Body of the email template.

    */ @@ -776,5 +780,17 @@ public SetEmailTemplateResponseContent build() { enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorDuoSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorDuoSettingsResponseContent.java index b0e6d7cfc..6e834e80d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorDuoSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorDuoSettingsResponseContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public SetGuardianFactorDuoSettingsResponseContent build() { return new SetGuardianFactorDuoSettingsResponseContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneMessageTypesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneMessageTypesResponseContent.java index 1d1d7dba3..6024dccc2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneMessageTypesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneMessageTypesResponseContent.java @@ -101,5 +101,15 @@ public Builder messageTypes(List messa public SetGuardianFactorPhoneMessageTypesResponseContent build() { return new SetGuardianFactorPhoneMessageTypesResponseContent(messageTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java index 2fb065313..24ca6daa9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorPhoneTemplatesResponseContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { SetGuardianFactorPhoneTemplatesResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public SetGuardianFactorPhoneTemplatesResponseContent build() { return new SetGuardianFactorPhoneTemplatesResponseContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java index 7cebe40d1..e504e2b34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorResponseContent.java @@ -75,6 +75,10 @@ public interface EnabledStage { public interface _FinalStage { SetGuardianFactorResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -108,5 +112,17 @@ public _FinalStage enabled(boolean enabled) { public SetGuardianFactorResponseContent build() { return new SetGuardianFactorResponseContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java index 7f1280a48..efe4cbbea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorSmsTemplatesResponseContent.java @@ -97,6 +97,10 @@ public interface VerificationMessageStage { public interface _FinalStage { SetGuardianFactorSmsTemplatesResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -147,5 +151,17 @@ public SetGuardianFactorSmsTemplatesResponseContent build() { return new SetGuardianFactorSmsTemplatesResponseContent( enrollmentMessage, verificationMessage, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneResponseContent.java index c7ca94056..7608469a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneResponseContent.java @@ -93,5 +93,15 @@ public Builder provider(GuardianFactorsProviderSmsProviderEnum provider) { public SetGuardianFactorsProviderPhoneResponseContent build() { return new SetGuardianFactorsProviderPhoneResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneTwilioResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneTwilioResponseContent.java index 3e0e6cfa8..4adb89120 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneTwilioResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPhoneTwilioResponseContent.java @@ -314,5 +314,15 @@ public SetGuardianFactorsProviderPhoneTwilioResponseContent build() { return new SetGuardianFactorsProviderPhoneTwilioResponseContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationApnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationApnsResponseContent.java index 307f15ec1..dc94769d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationApnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationApnsResponseContent.java @@ -149,5 +149,15 @@ public SetGuardianFactorsProviderPushNotificationApnsResponseContent build() { return new SetGuardianFactorsProviderPushNotificationApnsResponseContent( sandbox, bundleId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationResponseContent.java index c7713b530..9a4efdc11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationResponseContent.java @@ -94,5 +94,15 @@ public Builder provider(GuardianFactorsProviderPushNotificationProviderDataEnum public SetGuardianFactorsProviderPushNotificationResponseContent build() { return new SetGuardianFactorsProviderPushNotificationResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationSnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationSnsResponseContent.java index 0e2aff519..315f2c3c9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationSnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderPushNotificationSnsResponseContent.java @@ -356,5 +356,15 @@ public SetGuardianFactorsProviderPushNotificationSnsResponseContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsResponseContent.java index 712e9c554..6036ba31e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsResponseContent.java @@ -93,5 +93,15 @@ public Builder provider(GuardianFactorsProviderSmsProviderEnum provider) { public SetGuardianFactorsProviderSmsResponseContent build() { return new SetGuardianFactorsProviderSmsResponseContent(provider, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsTwilioResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsTwilioResponseContent.java index 53076ea2e..fa876bcf8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsTwilioResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetGuardianFactorsProviderSmsTwilioResponseContent.java @@ -314,5 +314,15 @@ public SetGuardianFactorsProviderSmsTwilioResponseContent build() { return new SetGuardianFactorsProviderSmsTwilioResponseContent( from, messagingServiceSid, authToken, sid, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java index 63eb55efd..a5d7e845f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclRequestContent.java @@ -126,6 +126,10 @@ public interface RuleStage { public interface _FinalStage { SetNetworkAclRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -194,5 +198,17 @@ public _FinalStage rule(@NotNull NetworkAclRule rule) { public SetNetworkAclRequestContent build() { return new SetNetworkAclRequestContent(description, active, priority, rule, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclsResponseContent.java index 2f9b88e14..ddb6e7e2c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetNetworkAclsResponseContent.java @@ -251,5 +251,15 @@ public SetNetworkAclsResponseContent build() { return new SetNetworkAclsResponseContent( id, description, active, priority, rule, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java index fe5071d0f..fe34bbeec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigRequestContent.java @@ -76,6 +76,10 @@ public interface ValueStage { public interface _FinalStage { SetRulesConfigRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage value(@NotNull String value) { public SetRulesConfigRequestContent build() { return new SetRulesConfigRequestContent(value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java index 26d5058ad..c4194eca3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetRulesConfigResponseContent.java @@ -94,6 +94,10 @@ public interface ValueStage { public interface _FinalStage { SetRulesConfigResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -142,5 +146,17 @@ public _FinalStage value(@NotNull String value) { public SetRulesConfigResponseContent build() { return new SetRulesConfigResponseContent(key, value, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java index 119d70fa8..7721cad9e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethodResponseContent.java @@ -241,6 +241,10 @@ public interface TypeStage { public interface _FinalStage { SetUserAuthenticationMethodResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The ID of the newly created authentication method (automatically generated by the application)

    */ @@ -626,5 +630,17 @@ public SetUserAuthenticationMethodResponseContent build() { createdAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethods.java b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethods.java index a070ffc99..c7af2a1c1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethods.java +++ b/src/main/java/com/auth0/client/mgmt/types/SetUserAuthenticationMethods.java @@ -143,6 +143,10 @@ public interface TypeStage { public interface _FinalStage { SetUserAuthenticationMethods build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage preferredAuthenticationMethod( Optional preferredAuthenticationMethod); @@ -314,5 +318,17 @@ public SetUserAuthenticationMethods build() { return new SetUserAuthenticationMethods( type, preferredAuthenticationMethod, name, phoneNumber, email, totpSecret, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java b/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java index 657e7445a..86f9b33c0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java +++ b/src/main/java/com/auth0/client/mgmt/types/SigningKeys.java @@ -248,6 +248,10 @@ public interface ThumbprintStage { public interface _FinalStage { SigningKeys build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The public certificate of the signing key in pkcs7 format

    */ @@ -548,5 +552,17 @@ public SigningKeys build() { revokedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SignupSchema.java b/src/main/java/com/auth0/client/mgmt/types/SignupSchema.java index 1046a9079..b1df4857f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SignupSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/SignupSchema.java @@ -91,5 +91,15 @@ public Builder status(SignupStatusEnum status) { public SignupSchema build() { return new SignupSchema(status, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SignupVerification.java b/src/main/java/com/auth0/client/mgmt/types/SignupVerification.java index 8201e8d66..4e38b84d2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SignupVerification.java +++ b/src/main/java/com/auth0/client/mgmt/types/SignupVerification.java @@ -91,5 +91,15 @@ public Builder active(Boolean active) { public SignupVerification build() { return new SignupVerification(active, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SignupVerified.java b/src/main/java/com/auth0/client/mgmt/types/SignupVerified.java index b4ea5c8be..2dd539340 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SignupVerified.java +++ b/src/main/java/com/auth0/client/mgmt/types/SignupVerified.java @@ -116,5 +116,15 @@ public Builder verification(SignupVerification verification) { public SignupVerified build() { return new SignupVerified(status, verification, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreLoginStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreLoginStage.java index bdadd4d67..5c58bf2dd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreLoginStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreLoginStage.java @@ -127,5 +127,15 @@ public Builder rate(Integer rate) { public SuspiciousIpThrottlingPreLoginStage build() { return new SuspiciousIpThrottlingPreLoginStage(maxAttempts, rate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreUserRegistrationStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreUserRegistrationStage.java index 255f2881b..d3dabddd4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreUserRegistrationStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingPreUserRegistrationStage.java @@ -127,5 +127,15 @@ public Builder rate(Integer rate) { public SuspiciousIpThrottlingPreUserRegistrationStage build() { return new SuspiciousIpThrottlingPreUserRegistrationStage(maxAttempts, rate, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java index 9aeba1e60..8a22c9676 100644 --- a/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java +++ b/src/main/java/com/auth0/client/mgmt/types/SuspiciousIpThrottlingStage.java @@ -117,5 +117,15 @@ public Builder preUserRegistration(SuspiciousIpThrottlingPreUserRegistrationStag public SuspiciousIpThrottlingStage build() { return new SuspiciousIpThrottlingStage(preLogin, preUserRegistration, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantOidcLogoutSettings.java b/src/main/java/com/auth0/client/mgmt/types/TenantOidcLogoutSettings.java index 5439ecd61..39cc2b278 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantOidcLogoutSettings.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantOidcLogoutSettings.java @@ -98,5 +98,15 @@ public Builder rpLogoutEndSessionEndpointDiscovery(Boolean rpLogoutEndSessionEnd public TenantOidcLogoutSettings build() { return new TenantOidcLogoutSettings(rpLogoutEndSessionEndpointDiscovery, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsDeviceFlow.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsDeviceFlow.java index 2aaf54480..f5a0b9f7a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsDeviceFlow.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsDeviceFlow.java @@ -122,5 +122,15 @@ public Builder mask(String mask) { public TenantSettingsDeviceFlow build() { return new TenantSettingsDeviceFlow(charset, mask, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsErrorPage.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsErrorPage.java index 906837dc1..67e78417a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsErrorPage.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsErrorPage.java @@ -40,7 +40,7 @@ private TenantSettingsErrorPage( } /** - * @return Custom Error HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> is supported). + * @return Custom Error HTML (Liquid syntax is supported). */ @JsonProperty("html") public Optional getHtml() { @@ -113,7 +113,7 @@ public Builder from(TenantSettingsErrorPage other) { } /** - *

    Custom Error HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> is supported).

    + *

    Custom Error HTML (Liquid syntax is supported).

    */ @JsonSetter(value = "html", nulls = Nulls.SKIP) public Builder html(Optional html) { @@ -157,5 +157,15 @@ public Builder url(String url) { public TenantSettingsErrorPage build() { return new TenantSettingsErrorPage(html, showLogLink, url, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java index 29fb8040c..8f91d41ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsFlags.java @@ -344,7 +344,7 @@ public Optional getGenaiTrial() { } /** - * @return Whether third-party developers can <a href="https://auth0.com/docs/api-auth/dynamic-client-registration">dynamically register</a> applications for your APIs (true) or not (false). This flag enables dynamic client registration. + * @return Whether third-party developers can dynamically register applications for your APIs (true) or not (false). This flag enables dynamic client registration. */ @JsonProperty("enable_dynamic_client_registration") public Optional getEnableDynamicClientRegistration() { @@ -915,7 +915,7 @@ public Builder genaiTrial(Boolean genaiTrial) { } /** - *

    Whether third-party developers can <a href="https://auth0.com/docs/api-auth/dynamic-client-registration">dynamically register</a> applications for your APIs (true) or not (false). This flag enables dynamic client registration.

    + *

    Whether third-party developers can dynamically register applications for your APIs (true) or not (false). This flag enables dynamic client registration.

    */ @JsonSetter(value = "enable_dynamic_client_registration", nulls = Nulls.SKIP) public Builder enableDynamicClientRegistration(Optional enableDynamicClientRegistration) { @@ -1006,5 +1006,15 @@ public TenantSettingsFlags build() { customDomainsProvisioning, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsGuardianPage.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsGuardianPage.java index 7b6af4a8c..98b386c1b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsGuardianPage.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsGuardianPage.java @@ -42,7 +42,7 @@ public Optional getEnabled() { } /** - * @return Custom Guardian HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> is supported). + * @return Custom Guardian HTML (Liquid syntax is supported). */ @JsonProperty("html") public Optional getHtml() { @@ -110,7 +110,7 @@ public Builder enabled(Boolean enabled) { } /** - *

    Custom Guardian HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> is supported).

    + *

    Custom Guardian HTML (Liquid syntax is supported).

    */ @JsonSetter(value = "html", nulls = Nulls.SKIP) public Builder html(Optional html) { @@ -126,5 +126,15 @@ public Builder html(String html) { public TenantSettingsGuardianPage build() { return new TenantSettingsGuardianPage(enabled, html, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsMtls.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsMtls.java index 4fce8b382..61de9b90e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsMtls.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsMtls.java @@ -97,5 +97,15 @@ public Builder enableEndpointAliases(Boolean enableEndpointAliases) { public TenantSettingsMtls build() { return new TenantSettingsMtls(enableEndpointAliases, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsPasswordPage.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsPasswordPage.java index 3d254ec4b..e65d44ec9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsPasswordPage.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsPasswordPage.java @@ -42,7 +42,7 @@ public Optional getEnabled() { } /** - * @return Custom change password HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> supported). + * @return Custom change password HTML (Liquid syntax supported). */ @JsonProperty("html") public Optional getHtml() { @@ -110,7 +110,7 @@ public Builder enabled(Boolean enabled) { } /** - *

    Custom change password HTML (<a href='https://github.com/Shopify/liquid/wiki/Liquid-for-Designers'>Liquid syntax</a> supported).

    + *

    Custom change password HTML (Liquid syntax supported).

    */ @JsonSetter(value = "html", nulls = Nulls.SKIP) public Builder html(Optional html) { @@ -126,5 +126,15 @@ public Builder html(String html) { public TenantSettingsPasswordPage build() { return new TenantSettingsPasswordPage(enabled, html, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSessions.java b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSessions.java index ae2da26d0..0795c4c35 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSessions.java +++ b/src/main/java/com/auth0/client/mgmt/types/TenantSettingsSessions.java @@ -98,5 +98,15 @@ public Builder oidcLogoutPromptEnabled(Boolean oidcLogoutPromptEnabled) { public TenantSettingsSessions build() { return new TenantSettingsSessions(oidcLogoutPromptEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TestActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/TestActionRequestContent.java index b6ffac639..21aa610e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TestActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TestActionRequestContent.java @@ -101,5 +101,15 @@ public Builder payload(String key, Object value) { public TestActionRequestContent build() { return new TestActionRequestContent(payload, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TestActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/TestActionResponseContent.java index d7f2a85a8..7ff4a81d0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TestActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TestActionResponseContent.java @@ -91,5 +91,15 @@ public Builder payload(Map payload) { public TestActionResponseContent build() { return new TestActionResponseContent(payload, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java index 9393013df..9b0d0c996 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TestCustomDomainResponseContent.java @@ -90,6 +90,10 @@ public interface SuccessStage { public interface _FinalStage { TestCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Message describing the operation status.

    */ @@ -152,5 +156,17 @@ public _FinalStage message(Optional message) { public TestCustomDomainResponseContent build() { return new TestCustomDomainResponseContent(success, message, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfileResponseContent.java index 02f538da3..bddbddf7e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfileResponseContent.java @@ -277,5 +277,15 @@ public TokenExchangeProfileResponseContent build() { return new TokenExchangeProfileResponseContent( id, name, subjectTokenType, actionId, type, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java index 7d9471003..3ff9cf6ae 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenExchangeProfilesListRequest.java @@ -180,5 +180,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public TokenExchangeProfilesListRequest build() { return new TokenExchangeProfilesListRequest(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenQuota.java b/src/main/java/com/auth0/client/mgmt/types/TokenQuota.java index d7cf28e47..cdd584197 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenQuota.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenQuota.java @@ -70,6 +70,10 @@ public interface ClientCredentialsStage { public interface _FinalStage { TokenQuota build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage clientCredentials(@NotNull TokenQuotaClientCredentials client public TokenQuota build() { return new TokenQuota(clientCredentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenQuotaClientCredentials.java b/src/main/java/com/auth0/client/mgmt/types/TokenQuotaClientCredentials.java index 920f2889b..ed43389d1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenQuotaClientCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenQuotaClientCredentials.java @@ -157,5 +157,15 @@ public Builder perHour(Integer perHour) { public TokenQuotaClientCredentials build() { return new TokenQuotaClientCredentials(enforce, perDay, perHour, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenQuotaConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/TokenQuotaConfiguration.java index d343e5b82..25f19bdc7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TokenQuotaConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/TokenQuotaConfiguration.java @@ -71,6 +71,10 @@ public interface ClientCredentialsStage { public interface _FinalStage { TokenQuotaConfiguration build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -99,5 +103,17 @@ public _FinalStage clientCredentials(@NotNull TokenQuotaClientCredentials client public TokenQuotaConfiguration build() { return new TokenQuotaConfiguration(clientCredentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TwilioProviderConfiguration.java b/src/main/java/com/auth0/client/mgmt/types/TwilioProviderConfiguration.java index 8468c49e4..d687bf68a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TwilioProviderConfiguration.java +++ b/src/main/java/com/auth0/client/mgmt/types/TwilioProviderConfiguration.java @@ -107,6 +107,10 @@ public interface SidStage { public interface _FinalStage { TwilioProviderConfiguration build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage defaultFrom(Optional defaultFrom); _FinalStage defaultFrom(String defaultFrom); @@ -207,5 +211,17 @@ public _FinalStage defaultFrom(Optional defaultFrom) { public TwilioProviderConfiguration build() { return new TwilioProviderConfiguration(defaultFrom, mssid, sid, deliveryMethods, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/TwilioProviderCredentials.java b/src/main/java/com/auth0/client/mgmt/types/TwilioProviderCredentials.java index 195d73745..15169ba32 100644 --- a/src/main/java/com/auth0/client/mgmt/types/TwilioProviderCredentials.java +++ b/src/main/java/com/auth0/client/mgmt/types/TwilioProviderCredentials.java @@ -70,6 +70,10 @@ public interface AuthTokenStage { public interface _FinalStage { TwilioProviderCredentials build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage authToken(@NotNull String authToken) { public TwilioProviderCredentials build() { return new TwilioProviderCredentials(authToken, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateActionBindingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateActionBindingsResponseContent.java index d8d2c5e92..30398cc9f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateActionBindingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateActionBindingsResponseContent.java @@ -94,5 +94,15 @@ public Builder bindings(List bindings) { public UpdateActionBindingsResponseContent build() { return new UpdateActionBindingsResponseContent(bindings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateActionModuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateActionModuleResponseContent.java index a34b51e9a..11c9579af 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateActionModuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateActionModuleResponseContent.java @@ -418,5 +418,15 @@ public UpdateActionModuleResponseContent build() { latestVersion, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateActionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateActionRequestContent.java index 204f78590..8cc20a3fe 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateActionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateActionRequestContent.java @@ -288,5 +288,15 @@ public UpdateActionRequestContent build() { return new UpdateActionRequestContent( name, supportedTriggers, code, dependencies, runtime, secrets, modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateActionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateActionResponseContent.java index cea3d6c3a..d3e18f46b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateActionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateActionResponseContent.java @@ -598,5 +598,15 @@ public UpdateActionResponseContent build() { modules, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java index 9121be94b..bd4b8c218 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateAculResponseContent.java @@ -338,5 +338,15 @@ public UpdateAculResponseContent build() { filters, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateAttackProtectionCaptchaResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateAttackProtectionCaptchaResponseContent.java index 564d4a40e..ae05cac8d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateAttackProtectionCaptchaResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateAttackProtectionCaptchaResponseContent.java @@ -283,5 +283,15 @@ public UpdateAttackProtectionCaptchaResponseContent build() { simpleCaptcha, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBotDetectionSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBotDetectionSettingsResponseContent.java index e1feae1af..78fac4273 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBotDetectionSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBotDetectionSettingsResponseContent.java @@ -235,5 +235,15 @@ public UpdateBotDetectionSettingsResponseContent build() { monitoringModeEnabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingColors.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingColors.java index a17710ac0..99e05567a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingColors.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingColors.java @@ -155,5 +155,15 @@ public Builder pageBackground(UpdateBrandingPageBackground pageBackground) { public UpdateBrandingColors build() { return new UpdateBrandingColors(primary, pageBackground, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingFont.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingFont.java index 1da496328..6060d8695 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingFont.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingFont.java @@ -130,5 +130,15 @@ public Builder url(com.auth0.client.mgmt.core.Nullable url) { public UpdateBrandingFont build() { return new UpdateBrandingFont(url, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneProviderResponseContent.java index b99b25df2..c7a23470d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingPhoneProviderResponseContent.java @@ -167,6 +167,10 @@ public interface NameStage { public interface _FinalStage { UpdateBrandingPhoneProviderResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage id(Optional id); _FinalStage id(String id); @@ -375,5 +379,17 @@ public UpdateBrandingPhoneProviderResponseContent build() { return new UpdateBrandingPhoneProviderResponseContent( id, tenant, name, channel, disabled, configuration, createdAt, updatedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java index ad7fd7d62..a83c4e249 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingRequestContent.java @@ -300,5 +300,15 @@ public Builder font(com.auth0.client.mgmt.core.Nullable font public UpdateBrandingRequestContent build() { return new UpdateBrandingRequestContent(colors, faviconUrl, logoUrl, font, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java index f1a68fe24..4f4c32661 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingResponseContent.java @@ -177,5 +177,15 @@ public Builder font(BrandingFont font) { public UpdateBrandingResponseContent build() { return new UpdateBrandingResponseContent(colors, faviconUrl, logoUrl, font, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java index fe37d6c34..80d8ee4d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBrandingThemeResponseContent.java @@ -176,6 +176,10 @@ public interface WidgetStage { public interface _FinalStage { UpdateBrandingThemeResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -283,5 +287,17 @@ public UpdateBrandingThemeResponseContent build() { return new UpdateBrandingThemeResponseContent( borders, colors, displayName, fonts, pageBackground, themeId, widget, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBreachedPasswordDetectionSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBreachedPasswordDetectionSettingsResponseContent.java index 056a6b7d4..59c72027d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBreachedPasswordDetectionSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBreachedPasswordDetectionSettingsResponseContent.java @@ -58,7 +58,7 @@ public Optional getEnabled() { /** * @return Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>. + * Possible values: block, user_notification, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -67,7 +67,7 @@ public Optional> getShields() { /** * @return When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>. + * Possible values: immediately, daily, weekly, monthly. */ @JsonProperty("admin_notification_frequency") public Optional> getAdminNotificationFrequency() { @@ -161,7 +161,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a breached password is detected during a login. - * Possible values: <code>block</code>, <code>user_notification</code>, <code>admin_notification</code>.

    + * Possible values: block, user_notification, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -176,7 +176,7 @@ public Builder shields(List shields) { /** *

    When "admin_notification" is enabled, determines how often email notifications are sent. - * Possible values: <code>immediately</code>, <code>daily</code>, <code>weekly</code>, <code>monthly</code>.

    + * Possible values: immediately, daily, weekly, monthly.

    */ @JsonSetter(value = "admin_notification_frequency", nulls = Nulls.SKIP) public Builder adminNotificationFrequency( @@ -217,5 +217,15 @@ public UpdateBreachedPasswordDetectionSettingsResponseContent build() { return new UpdateBreachedPasswordDetectionSettingsResponseContent( enabled, shields, adminNotificationFrequency, method, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateBruteForceSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateBruteForceSettingsResponseContent.java index 52ead5eee..111c01fe4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateBruteForceSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateBruteForceSettingsResponseContent.java @@ -58,7 +58,7 @@ public Optional getEnabled() { /** * @return Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>. + * Possible values: block, user_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -162,7 +162,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a brute force protection threshold is violated. - * Possible values: <code>block</code>, <code>user_notification</code>.

    + * Possible values: block, user_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -218,5 +218,15 @@ public UpdateBruteForceSettingsResponseContent build() { return new UpdateBruteForceSettingsResponseContent( enabled, shields, allowlist, mode, maxAttempts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java index f0bd62b3a..f743e6697 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantRequestContent.java @@ -321,5 +321,15 @@ public UpdateClientGrantRequestContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantResponseContent.java index 41b38a2ce..cc0feaf11 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientGrantResponseContent.java @@ -379,5 +379,15 @@ public UpdateClientGrantResponseContent build() { allowAllScopes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java index c7a309bc6..9357fcd94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientRequestContent.java @@ -240,7 +240,7 @@ public Optional getName() { } /** - * @return Free text description of the purpose of the Client. (Max character length: <code>140</code>) + * @return Free text description of the purpose of the Client. (Max character length: 140) */ @JsonProperty("description") public Optional getDescription() { @@ -353,7 +353,7 @@ public OptionalNullable getEncryptionKey() { } /** - * @return <code>true</code> to use Auth0 instead of the IdP to do Single Sign On, <code>false</code> otherwise (default: <code>false</code>) + * @return true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false) */ @JsonProperty("sso") public Optional getSso() { @@ -361,7 +361,7 @@ public Optional getSso() { } /** - * @return <code>true</code> if this client can be used to make cross-origin authentication requests, <code>false</code> otherwise if cross origin is disabled + * @return true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled */ @JsonProperty("cross_origin_authentication") public Optional getCrossOriginAuthentication() { @@ -381,7 +381,7 @@ public OptionalNullable getCrossOriginLoc() { } /** - * @return <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>) + * @return true to disable Single Sign On, false otherwise (default: false) */ @JsonProperty("sso_disabled") public Optional getSsoDisabled() { @@ -389,7 +389,7 @@ public Optional getSsoDisabled() { } /** - * @return <code>true</code> if the custom login page is to be used, <code>false</code> otherwise. + * @return true if the custom login page is to be used, false otherwise. */ @JsonProperty("custom_login_page_on") public Optional getCustomLoginPageOn() { @@ -1022,7 +1022,7 @@ public Builder name(String name) { } /** - *

    Free text description of the purpose of the Client. (Max character length: <code>140</code>)

    + *

    Free text description of the purpose of the Client. (Max character length: 140)

    */ @JsonSetter(value = "description", nulls = Nulls.SKIP) public Builder description(Optional description) { @@ -1258,7 +1258,7 @@ public Builder encryptionKey(com.auth0.client.mgmt.core.Nullable<code>true</code> to use Auth0 instead of the IdP to do Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to use Auth0 instead of the IdP to do Single Sign On, false otherwise (default: false)

    */ @JsonSetter(value = "sso", nulls = Nulls.SKIP) public Builder sso(Optional sso) { @@ -1272,7 +1272,7 @@ public Builder sso(Boolean sso) { } /** - *

    <code>true</code> if this client can be used to make cross-origin authentication requests, <code>false</code> otherwise if cross origin is disabled

    + *

    true if this client can be used to make cross-origin authentication requests, false otherwise if cross origin is disabled

    */ @JsonSetter(value = "cross_origin_authentication", nulls = Nulls.SKIP) public Builder crossOriginAuthentication(Optional crossOriginAuthentication) { @@ -1320,7 +1320,7 @@ public Builder crossOriginLoc(com.auth0.client.mgmt.core.Nullable crossO } /** - *

    <code>true</code> to disable Single Sign On, <code>false</code> otherwise (default: <code>false</code>)

    + *

    true to disable Single Sign On, false otherwise (default: false)

    */ @JsonSetter(value = "sso_disabled", nulls = Nulls.SKIP) public Builder ssoDisabled(Optional ssoDisabled) { @@ -1334,7 +1334,7 @@ public Builder ssoDisabled(Boolean ssoDisabled) { } /** - *

    <code>true</code> if the custom login page is to be used, <code>false</code> otherwise.

    + *

    true if the custom login page is to be used, false otherwise.

    */ @JsonSetter(value = "custom_login_page_on", nulls = Nulls.SKIP) public Builder customLoginPageOn(Optional customLoginPageOn) { @@ -2022,5 +2022,15 @@ public UpdateClientRequestContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java index fc2fd8130..ae9add228 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateClientResponseContent.java @@ -313,7 +313,7 @@ public Optional getIsFirstParty() { } /** - * @return Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false). + * @return Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false). */ @JsonProperty("oidc_conformant") public Optional getOidcConformant() { @@ -337,7 +337,7 @@ public Optional> getAllowedOrigins() { } /** - * @return Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>. + * @return Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode. */ @JsonProperty("web_origins") public Optional> getWebOrigins() { @@ -1106,7 +1106,7 @@ public Builder isFirstParty(Boolean isFirstParty) { } /** - *

    Whether this client conforms to <a href='https://auth0.com/docs/api-auth/tutorials/adoption'>strict OIDC specifications</a> (true) or uses legacy features (false).

    + *

    Whether this client conforms to strict OIDC specifications (true) or uses legacy features (false).

    */ @JsonSetter(value = "oidc_conformant", nulls = Nulls.SKIP) public Builder oidcConformant(Optional oidcConformant) { @@ -1148,7 +1148,7 @@ public Builder allowedOrigins(List allowedOrigins) { } /** - *

    Comma-separated list of allowed origins for use with <a href='https://auth0.com/docs/cross-origin-authentication'>Cross-Origin Authentication</a>, <a href='https://auth0.com/docs/flows/concepts/device-auth'>Device Flow</a>, and <a href='https://auth0.com/docs/protocols/oauth2#how-response-mode-works'>web message response mode</a>.

    + *

    Comma-separated list of allowed origins for use with Cross-Origin Authentication, Device Flow, and web message response mode.

    */ @JsonSetter(value = "web_origins", nulls = Nulls.SKIP) public Builder webOrigins(Optional> webOrigins) { @@ -1872,5 +1872,15 @@ public UpdateClientResponseContent build() { asyncApprovalNotificationChannels, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java index b59873673..9c82bf297 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -1196,5 +1196,15 @@ public UpdateConnectionOptions build() { federatedConnectionsAccessTokens, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java index 3ff10a660..8fc46e12b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileRequestContent.java @@ -228,5 +228,15 @@ public UpdateConnectionProfileRequestContent build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java index 0093ba01e..b9ff360fc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionProfileResponseContent.java @@ -254,5 +254,15 @@ public UpdateConnectionProfileResponseContent build() { strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java index 390990348..96d0624d3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContent.java @@ -93,7 +93,7 @@ public Optional> getEnabledClients() { } /** - * @return <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.) + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) */ @JsonProperty("is_domain_connection") public Optional getIsDomainConnection() { @@ -101,7 +101,7 @@ public Optional getIsDomainConnection() { } /** - * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.) + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.) */ @JsonProperty("show_as_button") public Optional getShowAsButton() { @@ -281,7 +281,7 @@ public Builder enabledClients(List enabledClients) { } /** - *

    <code>true</code> promotes to a domain-level connection so that third-party applications can use it. <code>false</code> does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to <code>false</code>.)

    + *

    true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

    */ @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) public Builder isDomainConnection(Optional isDomainConnection) { @@ -295,7 +295,7 @@ public Builder isDomainConnection(Boolean isDomainConnection) { } /** - *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to <code>false</code>.)

    + *

    Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. (Defaults to false.)

    */ @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) public Builder showAsButton(Optional showAsButton) { @@ -368,5 +368,15 @@ public UpdateConnectionRequestContent build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java index 6a076a064..15a429bf3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAd.java @@ -197,5 +197,15 @@ public UpdateConnectionRequestContentAd build() { return new UpdateConnectionRequestContentAd( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java index 40fb13538..71e1aff52 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAdfs.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentAdfs build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java index ea4f723f6..da797e088 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAmazon.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentAmazon build() { return new UpdateConnectionRequestContentAmazon( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java index 14c9cf954..b605ec4a1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAol.java @@ -197,5 +197,15 @@ public UpdateConnectionRequestContentAol build() { return new UpdateConnectionRequestContentAol( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java index 38a32b74b..8143cbf2b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentApple.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentApple build() { return new UpdateConnectionRequestContentApple( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java index 2b939b4d8..a8113a69c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0.java @@ -227,5 +227,15 @@ public UpdateConnectionRequestContentAuth0 build() { return new UpdateConnectionRequestContentAuth0( displayName, enabledClients, isDomainConnection, metadata, options, realms, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java index 2d0fb032f..8212986ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAuth0Oidc.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentAuth0Oidc build() { return new UpdateConnectionRequestContentAuth0Oidc( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java index 8a1642c71..70f028c78 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentAzureAd.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentAzureAd build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java index 98dd92016..20b659a1c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBaidu.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentBaidu build() { return new UpdateConnectionRequestContentBaidu( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java index c2339b7b9..c5421d34d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitbucket.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentBitbucket build() { return new UpdateConnectionRequestContentBitbucket( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java index f1d8f9e58..751a9c052 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBitly.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentBitly build() { return new UpdateConnectionRequestContentBitly( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java index fd58711dd..ca8c0cfc7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentBox.java @@ -260,5 +260,15 @@ public UpdateConnectionRequestContentBox build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java index 86ed5acdf..cacc4468a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentCustom.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentCustom build() { return new UpdateConnectionRequestContentCustom( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java index c8ce9e319..c39382eba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDaccount.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentDaccount build() { return new UpdateConnectionRequestContentDaccount( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java index f8be18451..2709747b0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDropbox.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentDropbox build() { return new UpdateConnectionRequestContentDropbox( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java index 3639a1171..768b3f0b9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentDwolla.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentDwolla build() { return new UpdateConnectionRequestContentDwolla( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java index a3c9757f9..1b2061845 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEmail.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentEmail build() { return new UpdateConnectionRequestContentEmail( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java index c8387ec26..54b77f555 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernote.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentEvernote build() { return new UpdateConnectionRequestContentEvernote( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java index 15008e6ff..68c81f11b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentEvernoteSandbox.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentEvernoteSandbox build() { return new UpdateConnectionRequestContentEvernoteSandbox( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java index 41d9d6ec6..0b15118a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentExact.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentExact build() { return new UpdateConnectionRequestContentExact( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java index 341a645d6..1d55c6912 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFacebook.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentFacebook build() { return new UpdateConnectionRequestContentFacebook( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java index 41f14d24d..b5afa4359 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFitbit.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentFitbit build() { return new UpdateConnectionRequestContentFitbit( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java index 8ece90a04..feb47f369 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentFlickr.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentFlickr build() { return new UpdateConnectionRequestContentFlickr( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java index ab6f28c7c..70009efc9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGitHub.java @@ -261,5 +261,15 @@ public UpdateConnectionRequestContentGitHub build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java index bc801b35d..cfa6e5543 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleApps.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentGoogleApps build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java index d634e0979..4ddc6afe7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentGoogleOAuth2.java @@ -261,5 +261,15 @@ public UpdateConnectionRequestContentGoogleOAuth2 build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java index 5145f4796..73592c2ad 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentInstagram.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentInstagram build() { return new UpdateConnectionRequestContentInstagram( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java index 93c5fe478..7da6fa287 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentIp.java @@ -232,5 +232,15 @@ public UpdateConnectionRequestContentIp build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java index bdb9cc39b..836d4de7b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLine.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentLine build() { return new UpdateConnectionRequestContentLine( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java index 745f58230..df6fc803e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentLinkedin.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentLinkedin build() { return new UpdateConnectionRequestContentLinkedin( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java index cd2660f58..158397f8f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentMiicard.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentMiicard build() { return new UpdateConnectionRequestContentMiicard( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java index a5a031815..fc0d39b22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth1.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentOAuth1 build() { return new UpdateConnectionRequestContentOAuth1( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java index 526fc6ff9..e39d2ff41 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOAuth2.java @@ -261,5 +261,15 @@ public UpdateConnectionRequestContentOAuth2 build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java index af7cadc70..e325096a2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOffice365.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentOffice365 build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java index 232aaefa5..459b68a66 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOidc.java @@ -285,5 +285,15 @@ public UpdateConnectionRequestContentOidc build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java index bc6012f02..92c8bf226 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentOkta.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentOkta build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java index 5215f730e..5a41c2cf1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypal.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentPaypal build() { return new UpdateConnectionRequestContentPaypal( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java index 34336799a..af4638a8e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPaypalSandbox.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentPaypalSandbox build() { return new UpdateConnectionRequestContentPaypalSandbox( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java index 1202d4f50..1d5a97446 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPingFederate.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentPingFederate build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java index d19e7bf69..c93624dbd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentPlanningCenter.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentPlanningCenter build() { return new UpdateConnectionRequestContentPlanningCenter( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java index 07563d8ce..147b1f464 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentRenren.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentRenren build() { return new UpdateConnectionRequestContentRenren( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java index a3818f7b6..e3102b098 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforce.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentSalesforce build() { return new UpdateConnectionRequestContentSalesforce( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java index 7aed752b6..edd9aced8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceCommunity.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentSalesforceCommunity build() { return new UpdateConnectionRequestContentSalesforceCommunity( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java index e4e458e84..0380deacd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSalesforceSandbox.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentSalesforceSandbox build() { return new UpdateConnectionRequestContentSalesforceSandbox( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java index 0ae5ba498..df2acf515 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSaml.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentSaml build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java index 759e85e23..f93d8155e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSharepoint.java @@ -233,5 +233,15 @@ public UpdateConnectionRequestContentSharepoint build() { showAsButton, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java index f67409cf5..9c1e77bb0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShop.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentShop build() { return new UpdateConnectionRequestContentShop( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java index 7888d4939..d2444596e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentShopify.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentShopify build() { return new UpdateConnectionRequestContentShopify( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java index 6d1b70150..1a05971cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSms.java @@ -197,5 +197,15 @@ public UpdateConnectionRequestContentSms build() { return new UpdateConnectionRequestContentSms( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java index 31d41860a..889e439fd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentSoundcloud.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentSoundcloud build() { return new UpdateConnectionRequestContentSoundcloud( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java index 7b0a918ee..82f7e898f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentThirtySevenSignals.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentThirtySevenSignals build() { return new UpdateConnectionRequestContentThirtySevenSignals( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java index 42694956c..89c2ea0df 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentTwitter.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentTwitter build() { return new UpdateConnectionRequestContentTwitter( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java index 7eec64546..ff7cc11d6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentUntappd.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentUntappd build() { return new UpdateConnectionRequestContentUntappd( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java index 28bf9bd43..c990fca94 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentVkontakte.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentVkontakte build() { return new UpdateConnectionRequestContentVkontakte( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java index cf0ed3135..63bad503f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWeibo.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentWeibo build() { return new UpdateConnectionRequestContentWeibo( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java index ffe86967f..8e4fde0b8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWindowsLive.java @@ -261,5 +261,15 @@ public UpdateConnectionRequestContentWindowsLive build() { options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java index 22b4fb9fe..442c0e59b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentWordpress.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentWordpress build() { return new UpdateConnectionRequestContentWordpress( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java index 1a757c8c5..abe44897c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYahoo.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentYahoo build() { return new UpdateConnectionRequestContentYahoo( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java index ad0025396..498a645e9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYammer.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentYammer build() { return new UpdateConnectionRequestContentYammer( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java index 3be54d53b..ff6fb6365 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionRequestContentYandex.java @@ -198,5 +198,15 @@ public UpdateConnectionRequestContentYandex build() { return new UpdateConnectionRequestContentYandex( displayName, enabledClients, isDomainConnection, metadata, options, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java index e9c80cb2b..f708907ca 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionResponseContent.java @@ -432,5 +432,15 @@ public UpdateConnectionResponseContent build() { connectedAccounts, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java index 99a88868b..d23d711ea 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainRequestContent.java @@ -229,5 +229,15 @@ public UpdateCustomDomainRequestContent build() { return new UpdateCustomDomainRequestContent( tlsPolicy, customClientIpHeader, domainMetadata, relyingPartyIdentifier, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java index 9a6bdbac4..62d8416e6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateCustomDomainResponseContent.java @@ -260,6 +260,10 @@ public interface VerificationStage { public interface _FinalStage { UpdateCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Whether this is the default custom domain (true) or not (false).

    */ @@ -566,5 +570,17 @@ public UpdateCustomDomainResponseContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java index cf1426c7e..702afacc5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningRequestContent.java @@ -131,5 +131,15 @@ public UpdateDirectoryProvisioningRequestContent build() { return new UpdateDirectoryProvisioningRequestContent( mapping, synchronizeAutomatically, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java index 199f418fe..26991d9ab 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateDirectoryProvisioningResponseContent.java @@ -247,6 +247,10 @@ public interface UpdatedAtStage { public interface _FinalStage { UpdateDirectoryProvisioningResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The mapping between Auth0 and IDP user attributes

    */ @@ -509,5 +513,17 @@ public UpdateDirectoryProvisioningResponseContent build() { lastSynchronizationError, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailProviderResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailProviderResponseContent.java index 12a2255f0..dff761e43 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailProviderResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailProviderResponseContent.java @@ -209,5 +209,15 @@ public UpdateEmailProviderResponseContent build() { return new UpdateEmailProviderResponseContent( name, enabled, defaultFromAddress, credentials, settings, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateRequestContent.java index 24add727f..d782470bb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateRequestContent.java @@ -565,5 +565,15 @@ public UpdateEmailTemplateRequestContent build() { enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateResponseContent.java index c7a2f72b3..e359701ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEmailTemplateResponseContent.java @@ -566,5 +566,15 @@ public UpdateEmailTemplateResponseContent build() { enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java index bb902c3c4..85ea275ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEnabledClientConnectionsRequestContentItem.java @@ -96,6 +96,10 @@ public interface StatusStage { public interface _FinalStage { UpdateEnabledClientConnectionsRequestContentItem build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -144,5 +148,17 @@ public _FinalStage status(boolean status) { public UpdateEnabledClientConnectionsRequestContentItem build() { return new UpdateEnabledClientConnectionsRequestContentItem(clientId, status, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateEventStreamRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateEventStreamRequestContent.java index 6f2a670cd..dfb4886cc 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateEventStreamRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateEventStreamRequestContent.java @@ -178,5 +178,15 @@ public Builder status(EventStreamStatusEnum status) { public UpdateEventStreamRequestContent build() { return new UpdateEventStreamRequestContent(name, subscriptions, destination, status, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java index d71828b46..7ad109664 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowRequestContent.java @@ -115,5 +115,15 @@ public Builder actions(List actions) { public UpdateFlowRequestContent build() { return new UpdateFlowRequestContent(name, actions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowResponseContent.java index dd6e1cb24..b7ed4be06 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowResponseContent.java @@ -139,6 +139,10 @@ public interface UpdatedAtStage { public interface _FinalStage { UpdateFlowResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage actions(Optional> actions); _FinalStage actions(List actions); @@ -237,5 +241,17 @@ public UpdateFlowResponseContent build() { return new UpdateFlowResponseContent( id, name, actions, createdAt, updatedAt, executedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java index 3f7d1e2fb..ebda4b622 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFlowsVaultConnectionResponseContent.java @@ -246,6 +246,10 @@ public interface FingerprintStage { public interface _FinalStage { UpdateFlowsVaultConnectionResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Flows Vault Connection environment.

    */ @@ -472,5 +476,17 @@ public UpdateFlowsVaultConnectionResponseContent build() { fingerprint, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFormRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFormRequestContent.java index 777677ea7..5c3d4d1c2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFormRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFormRequestContent.java @@ -421,5 +421,15 @@ public UpdateFormRequestContent build() { return new UpdateFormRequestContent( name, messages, languages, translations, nodes, start, ending, style, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateFormResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateFormResponseContent.java index 3be8732ad..d5e61a7ec 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateFormResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateFormResponseContent.java @@ -222,6 +222,10 @@ public interface UpdatedAtStage { public interface _FinalStage { UpdateFormResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage messages(Optional messages); _FinalStage messages(FormMessages messages); @@ -473,5 +477,17 @@ public UpdateFormResponseContent build() { submittedAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorDuoSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorDuoSettingsResponseContent.java index 634e09d9d..502c89634 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorDuoSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorDuoSettingsResponseContent.java @@ -140,5 +140,15 @@ public Builder host(String host) { public UpdateGuardianFactorDuoSettingsResponseContent build() { return new UpdateGuardianFactorDuoSettingsResponseContent(ikey, skey, host, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationApnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationApnsResponseContent.java index 0776e5419..13a34ea28 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationApnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationApnsResponseContent.java @@ -149,5 +149,15 @@ public UpdateGuardianFactorsProviderPushNotificationApnsResponseContent build() return new UpdateGuardianFactorsProviderPushNotificationApnsResponseContent( sandbox, bundleId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationSnsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationSnsResponseContent.java index 72a5d6a4f..8ec6c39a3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationSnsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateGuardianFactorsProviderPushNotificationSnsResponseContent.java @@ -356,5 +356,15 @@ public UpdateGuardianFactorsProviderPushNotificationSnsResponseContent build() { snsGcmPlatformApplicationArn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateHookRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateHookRequestContent.java index a670143d6..81e2c399b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateHookRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateHookRequestContent.java @@ -183,5 +183,15 @@ public Builder dependencies(Map dependencies) { public UpdateHookRequestContent build() { return new UpdateHookRequestContent(name, script, enabled, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateHookResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateHookResponseContent.java index a76296cf0..c03286f22 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateHookResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateHookResponseContent.java @@ -244,5 +244,15 @@ public UpdateHookResponseContent build() { return new UpdateHookResponseContent( triggerId, id, name, enabled, script, dependencies, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateLogStreamRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateLogStreamRequestContent.java index f6ea3cb1c..b2270f83d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateLogStreamRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateLogStreamRequestContent.java @@ -233,5 +233,15 @@ public UpdateLogStreamRequestContent build() { return new UpdateLogStreamRequestContent( name, status, isPriority, filters, piiConfig, sink, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclRequestContent.java index bb297f74c..b4a442d33 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclRequestContent.java @@ -177,5 +177,15 @@ public Builder rule(NetworkAclRule rule) { public UpdateNetworkAclRequestContent build() { return new UpdateNetworkAclRequestContent(description, active, priority, rule, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclResponseContent.java index 9b15c8f06..b729b0d31 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateNetworkAclResponseContent.java @@ -251,5 +251,15 @@ public UpdateNetworkAclResponseContent build() { return new UpdateNetworkAclResponseContent( id, description, active, priority, rule, createdAt, updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationConnectionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationConnectionResponseContent.java index e4707f1de..5db8a9701 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationConnectionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationConnectionResponseContent.java @@ -225,5 +225,15 @@ public UpdateOrganizationConnectionResponseContent build() { connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java index b1d5c7289..f687785f1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationDiscoveryDomainResponseContent.java @@ -175,6 +175,10 @@ public interface VerificationHostStage { public interface _FinalStage { UpdateOrganizationDiscoveryDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Indicates whether this domain should be used for organization discovery.

    */ @@ -300,5 +304,17 @@ public UpdateOrganizationDiscoveryDomainResponseContent build() { verificationHost, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java index fa3df9eab..64d4b0d42 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java @@ -235,5 +235,15 @@ public UpdateOrganizationRequestContent build() { return new UpdateOrganizationRequestContent( displayName, name, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java index 5603c8958..79f93b23a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java @@ -233,5 +233,15 @@ public UpdateOrganizationResponseContent build() { return new UpdateOrganizationResponseContent( id, name, displayName, branding, metadata, tokenQuota, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java index 9ed20af9c..360479162 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdatePhoneTemplateResponseContent.java @@ -155,6 +155,10 @@ public interface DisabledStage { public interface _FinalStage { UpdatePhoneTemplateResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage channel(Optional channel); _FinalStage channel(String channel); @@ -278,5 +282,17 @@ public UpdatePhoneTemplateResponseContent build() { return new UpdatePhoneTemplateResponseContent( id, channel, customizable, tenant, content, type, disabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java index 040321c49..2f84a2f0f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenRequestContent.java @@ -126,5 +126,15 @@ public Builder refreshTokenMetadata( public UpdateRefreshTokenRequestContent build() { return new UpdateRefreshTokenRequestContent(refreshTokenMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenResponseContent.java index b89eba526..42b072e6d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRefreshTokenResponseContent.java @@ -477,5 +477,15 @@ public UpdateRefreshTokenResponseContent build() { lastExchangedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java index 894f391b1..034207858 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerRequestContent.java @@ -578,5 +578,15 @@ public UpdateResourceServerRequestContent build() { subjectTypeAuthorization, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java index fe4e36b58..7759c0e03 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateResourceServerResponseContent.java @@ -738,5 +738,15 @@ public UpdateResourceServerResponseContent build() { clientId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java index 7f9d9b68b..475b3669e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsNewDeviceResponseContent.java @@ -77,6 +77,10 @@ public interface RememberForStage { public interface _FinalStage { UpdateRiskAssessmentsSettingsNewDeviceResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -110,5 +114,17 @@ public _FinalStage rememberFor(int rememberFor) { public UpdateRiskAssessmentsSettingsNewDeviceResponseContent build() { return new UpdateRiskAssessmentsSettingsNewDeviceResponseContent(rememberFor, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java index 74d0413f7..1f20b8621 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRiskAssessmentsSettingsResponseContent.java @@ -76,6 +76,10 @@ public interface EnabledStage { public interface _FinalStage { UpdateRiskAssessmentsSettingsResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage enabled(boolean enabled) { public UpdateRiskAssessmentsSettingsResponseContent build() { return new UpdateRiskAssessmentsSettingsResponseContent(enabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRoleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRoleRequestContent.java index b2295388d..b7b610a74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRoleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRoleRequestContent.java @@ -126,5 +126,15 @@ public Builder description(String description) { public UpdateRoleRequestContent build() { return new UpdateRoleRequestContent(name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRoleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRoleResponseContent.java index 030113ea9..e2588ade3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRoleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRoleResponseContent.java @@ -157,5 +157,15 @@ public Builder description(String description) { public UpdateRoleResponseContent build() { return new UpdateRoleResponseContent(id, name, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRuleRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRuleRequestContent.java index a2ea28daf..f05681ae5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRuleRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRuleRequestContent.java @@ -189,5 +189,15 @@ public Builder enabled(Boolean enabled) { public UpdateRuleRequestContent build() { return new UpdateRuleRequestContent(script, name, order, enabled, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateRuleResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateRuleResponseContent.java index 3705f0238..1df00d23f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateRuleResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateRuleResponseContent.java @@ -249,5 +249,15 @@ public Builder stage(String stage) { public UpdateRuleResponseContent build() { return new UpdateRuleResponseContent(name, id, enabled, script, order, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java index 14fcbb308..f73c0e131 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateScimConfigurationResponseContent.java @@ -328,5 +328,15 @@ public UpdateScimConfigurationResponseContent build() { updatedOn, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileRequestContent.java index ff84aa32b..884973cc2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileRequestContent.java @@ -362,5 +362,15 @@ public UpdateSelfServiceProfileRequestContent build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileResponseContent.java index 3e994c889..3ed9c6d43 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSelfServiceProfileResponseContent.java @@ -355,5 +355,15 @@ public UpdateSelfServiceProfileResponseContent build() { userAttributeProfileId, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java index 43009ff83..383d4746d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionRequestContent.java @@ -125,5 +125,15 @@ public Builder sessionMetadata(com.auth0.client.mgmt.core.Nullable additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java index 74e14d613..2ac2fa6d4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSessionResponseContent.java @@ -460,5 +460,15 @@ public UpdateSessionResponseContent build() { sessionMetadata, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsRequestContent.java index 9dc1449b3..673d819b3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsRequestContent.java @@ -218,5 +218,15 @@ public UpdateSettingsRequestContent build() { return new UpdateSettingsRequestContent( universalLoginExperience, identifierFirst, webauthnPlatformFirstFactor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsResponseContent.java index 8acc2ed8e..39209a18c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSettingsResponseContent.java @@ -154,5 +154,15 @@ public UpdateSettingsResponseContent build() { return new UpdateSettingsResponseContent( universalLoginExperience, identifierFirst, webauthnPlatformFirstFactor, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java index a7502a8fc..ec7bff381 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSupplementalSignalsRequestContent.java @@ -76,6 +76,10 @@ public interface AkamaiEnabledStage { public interface _FinalStage { UpdateSupplementalSignalsRequestContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage akamaiEnabled(boolean akamaiEnabled) { public UpdateSupplementalSignalsRequestContent build() { return new UpdateSupplementalSignalsRequestContent(akamaiEnabled, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateSuspiciousIpThrottlingSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateSuspiciousIpThrottlingSettingsResponseContent.java index 115a9ef00..7c46101fb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateSuspiciousIpThrottlingSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateSuspiciousIpThrottlingSettingsResponseContent.java @@ -54,7 +54,7 @@ public Optional getEnabled() { /** * @return Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>. + * Possible values: block, admin_notification. */ @JsonProperty("shields") public Optional> getShields() { @@ -143,7 +143,7 @@ public Builder enabled(Boolean enabled) { /** *

    Action to take when a suspicious IP throttling threshold is violated. - * Possible values: <code>block</code>, <code>admin_notification</code>.

    + * Possible values: block, admin_notification.

    */ @JsonSetter(value = "shields", nulls = Nulls.SKIP) public Builder shields(Optional> shields) { @@ -182,5 +182,15 @@ public UpdateSuspiciousIpThrottlingSettingsResponseContent build() { return new UpdateSuspiciousIpThrottlingSettingsResponseContent( enabled, shields, allowlist, stage, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java index 834480b11..22d9b9f96 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateTenantSettingsResponseContent.java @@ -1451,5 +1451,15 @@ public UpdateTenantSettingsResponseContent build() { enableAiGuide, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateTokenExchangeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateTokenExchangeProfileRequestContent.java index d4253ec21..f14c96987 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateTokenExchangeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateTokenExchangeProfileRequestContent.java @@ -127,5 +127,15 @@ public Builder subjectTokenType(String subjectTokenType) { public UpdateTokenExchangeProfileRequestContent build() { return new UpdateTokenExchangeProfileRequestContent(name, subjectTokenType, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateTokenQuota.java b/src/main/java/com/auth0/client/mgmt/types/UpdateTokenQuota.java index 809a005a2..dc5998d3f 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateTokenQuota.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateTokenQuota.java @@ -70,6 +70,10 @@ public interface ClientCredentialsStage { public interface _FinalStage { UpdateTokenQuota build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -98,5 +102,17 @@ public _FinalStage clientCredentials(@NotNull TokenQuotaClientCredentials client public UpdateTokenQuota build() { return new UpdateTokenQuota(clientCredentials, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContentTemplate.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContentTemplate.java index 933f432d6..db1b0512a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContentTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUniversalLoginTemplateRequestContentTemplate.java @@ -72,6 +72,10 @@ public interface TemplateStage { public interface _FinalStage { UpdateUniversalLoginTemplateRequestContentTemplate build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -100,5 +104,17 @@ public _FinalStage template(@NotNull String template) { public UpdateUniversalLoginTemplateRequestContentTemplate build() { return new UpdateUniversalLoginTemplateRequestContentTemplate(template, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileRequestContent.java index 8e07b36ca..c25a75cef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileRequestContent.java @@ -167,5 +167,15 @@ public Builder userAttributes( public UpdateUserAttributeProfileRequestContent build() { return new UpdateUserAttributeProfileRequestContent(name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileResponseContent.java index 5ec1be962..e2a4415e0 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAttributeProfileResponseContent.java @@ -170,5 +170,15 @@ public UpdateUserAttributeProfileResponseContent build() { return new UpdateUserAttributeProfileResponseContent( id, name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAuthenticationMethodResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAuthenticationMethodResponseContent.java index ef05c7954..c60ce8098 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserAuthenticationMethodResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserAuthenticationMethodResponseContent.java @@ -241,6 +241,10 @@ public interface TypeStage { public interface _FinalStage { UpdateUserAuthenticationMethodResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The ID of the newly created authentication method (automatically generated by the application)

    */ @@ -626,5 +630,17 @@ public UpdateUserAuthenticationMethodResponseContent build() { createdAt, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java index c6a627803..622be7c67 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserRequestContent.java @@ -907,5 +907,15 @@ public UpdateUserRequestContent build() { username, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateUserResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateUserResponseContent.java index 8e5b12bc5..daf653709 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateUserResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateUserResponseContent.java @@ -145,7 +145,7 @@ public Optional getUsername() { } /** - * @return Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>. + * @return Phone number for this user. Follows the E.164 recommendation. */ @JsonProperty("phone_number") public Optional getPhoneNumber() { @@ -466,7 +466,7 @@ public Builder username(String username) { } /** - *

    Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>.

    + *

    Phone number for this user. Follows the E.164 recommendation.

    */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { @@ -713,5 +713,15 @@ public UpdateUserResponseContent build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateVerifiableCredentialTemplateResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateVerifiableCredentialTemplateResponseContent.java index 30b66c094..094ff9fd2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateVerifiableCredentialTemplateResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateVerifiableCredentialTemplateResponseContent.java @@ -418,5 +418,15 @@ public UpdateVerifiableCredentialTemplateResponseContent build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfile.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfile.java index 5706a1c67..342f0a3df 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfile.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfile.java @@ -168,5 +168,15 @@ public Builder userAttributes( public UserAttributeProfile build() { return new UserAttributeProfile(id, name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java index 2b538a11d..27aae1651 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileOidcMapping.java @@ -91,6 +91,10 @@ public interface MappingStage { public interface _FinalStage { UserAttributeProfileOidcMapping build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Display name for the OIDC mapping

    */ @@ -153,5 +157,17 @@ public _FinalStage displayName(Optional displayName) { public UserAttributeProfileOidcMapping build() { return new UserAttributeProfileOidcMapping(mapping, displayName, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverrides.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverrides.java index d78a5764b..ca8566c1a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverrides.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverrides.java @@ -264,5 +264,15 @@ public UserAttributeProfileStrategyOverrides build() { return new UserAttributeProfileStrategyOverrides( pingfederate, ad, adfs, waad, googleApps, okta, oidc, samlp, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java index 02e6b06b8..ad325f744 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesMapping.java @@ -150,5 +150,15 @@ public UserAttributeProfileStrategyOverridesMapping build() { return new UserAttributeProfileStrategyOverridesMapping( oidcMapping, samlMapping, scimMapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserId.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserId.java index fca59bd47..960c6a01e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserId.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserId.java @@ -264,5 +264,15 @@ public UserAttributeProfileStrategyOverridesUserId build() { return new UserAttributeProfileStrategyOverridesUserId( pingfederate, ad, adfs, waad, googleApps, okta, oidc, samlp, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserIdMapping.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserIdMapping.java index df2c13f3e..2c6e698c2 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserIdMapping.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileStrategyOverridesUserIdMapping.java @@ -150,5 +150,15 @@ public UserAttributeProfileStrategyOverridesUserIdMapping build() { return new UserAttributeProfileStrategyOverridesUserIdMapping( oidcMapping, samlMapping, scimMapping, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplate.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplate.java index ae6ceb190..50851a942 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplate.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplate.java @@ -142,5 +142,15 @@ public Builder userAttributes( public UserAttributeProfileTemplate build() { return new UserAttributeProfileTemplate(name, userId, userAttributes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplateItem.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplateItem.java index bd6554dc2..c4e3fb4a8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplateItem.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileTemplateItem.java @@ -151,5 +151,15 @@ public Builder template(UserAttributeProfileTemplate template) { public UserAttributeProfileTemplateItem build() { return new UserAttributeProfileTemplateItem(id, displayName, template, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java index 4f602575e..41ac29146 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserAttributeAdditionalProperties.java @@ -194,6 +194,10 @@ public interface Auth0MappingStage { public interface _FinalStage { UserAttributeProfileUserAttributeAdditionalProperties build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage oidcMapping(Optional oidcMapping); _FinalStage oidcMapping(UserAttributeProfileOidcMapping oidcMapping); @@ -371,5 +375,17 @@ public UserAttributeProfileUserAttributeAdditionalProperties build() { strategyOverrides, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserId.java b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserId.java index 68b3ce4ea..601e1e22d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserId.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAttributeProfileUserId.java @@ -173,5 +173,15 @@ public UserAttributeProfileUserId build() { return new UserAttributeProfileUserId( oidcMapping, samlMapping, scimMapping, strategyOverrides, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java index 0029e96da..59c6f3d34 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethod.java @@ -352,6 +352,10 @@ public interface CreatedAtStage { public interface _FinalStage { UserAuthenticationMethod build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    The authentication method status

    */ @@ -924,5 +928,17 @@ public UserAuthenticationMethod build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethodProperties.java b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethodProperties.java index 9893bebd1..9b1e4c7a4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethodProperties.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserAuthenticationMethodProperties.java @@ -117,5 +117,15 @@ public Builder id(String id) { public UserAuthenticationMethodProperties build() { return new UserAuthenticationMethodProperties(type, id, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserBlockIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/UserBlockIdentifier.java index 1149c8ddd..2ba8d0a1e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserBlockIdentifier.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserBlockIdentifier.java @@ -157,5 +157,15 @@ public Builder connection(String connection) { public UserBlockIdentifier build() { return new UserBlockIdentifier(identifier, ip, connection, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserGrant.java b/src/main/java/com/auth0/client/mgmt/types/UserGrant.java index 4da8da77d..28306e2e4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserGrant.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserGrant.java @@ -220,5 +220,15 @@ public Builder scope(List scope) { public UserGrant build() { return new UserGrant(id, clientId, userId, audience, scope, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java index e9056c211..4adb8d5a6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserGroupsResponseSchema.java @@ -457,5 +457,15 @@ public UserGroupsResponseSchema build() { membershipCreatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java index f67dd2aa1..ae6fc1547 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserIdentity.java @@ -185,6 +185,10 @@ public interface ProviderStage { public interface _FinalStage { UserIdentity build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage profileData(Optional profileData); _FinalStage profileData(UserProfileData profileData); @@ -391,5 +395,17 @@ public UserIdentity build() { refreshToken, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserIdentitySchema.java b/src/main/java/com/auth0/client/mgmt/types/UserIdentitySchema.java index 794f19544..e2064a5b8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserIdentitySchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserIdentitySchema.java @@ -314,5 +314,15 @@ public UserIdentitySchema build() { profileData, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserListLogOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UserListLogOffsetPaginatedResponseContent.java index 6cc6f997c..25ea1a8ef 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserListLogOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserListLogOffsetPaginatedResponseContent.java @@ -192,5 +192,15 @@ public UserListLogOffsetPaginatedResponseContent build() { return new UserListLogOffsetPaginatedResponseContent( start, limit, length, total, logs, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserPermissionSchema.java b/src/main/java/com/auth0/client/mgmt/types/UserPermissionSchema.java index 0bd26cc73..13d283f6c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserPermissionSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserPermissionSchema.java @@ -191,5 +191,15 @@ public UserPermissionSchema build() { return new UserPermissionSchema( resourceServerIdentifier, permissionName, resourceServerName, description, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserProfileData.java b/src/main/java/com/auth0/client/mgmt/types/UserProfileData.java index e76d8a547..a5d3ebd65 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserProfileData.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserProfileData.java @@ -326,5 +326,15 @@ public UserProfileData build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UserResponseSchema.java b/src/main/java/com/auth0/client/mgmt/types/UserResponseSchema.java index e177e50d5..781c690e1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserResponseSchema.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserResponseSchema.java @@ -145,7 +145,7 @@ public Optional getUsername() { } /** - * @return Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>. + * @return Phone number for this user. Follows the E.164 recommendation. */ @JsonProperty("phone_number") public Optional getPhoneNumber() { @@ -466,7 +466,7 @@ public Builder username(String username) { } /** - *

    Phone number for this user. Follows the <a href="https://en.wikipedia.org/wiki/E.164">E.164 recommendation</a>.

    + *

    Phone number for this user. Follows the E.164 recommendation.

    */ @JsonSetter(value = "phone_number", nulls = Nulls.SKIP) public Builder phoneNumber(Optional phoneNumber) { @@ -713,5 +713,15 @@ public UserResponseSchema build() { familyName, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameAllowedTypes.java b/src/main/java/com/auth0/client/mgmt/types/UsernameAllowedTypes.java index fd678fdb8..8086e8037 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsernameAllowedTypes.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameAllowedTypes.java @@ -114,5 +114,15 @@ public Builder phoneNumber(Boolean phoneNumber) { public UsernameAllowedTypes build() { return new UsernameAllowedTypes(email, phoneNumber, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java b/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java index 81d7ee07d..63bb140cd 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java @@ -171,5 +171,15 @@ public Builder validation(UsernameValidation validation) { public UsernameAttribute build() { return new UsernameAttribute(identifier, profileRequired, signup, validation, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameValidation.java b/src/main/java/com/auth0/client/mgmt/types/UsernameValidation.java index d8070e03b..bcfa17335 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsernameValidation.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameValidation.java @@ -153,5 +153,15 @@ public Builder allowedTypes(UsernameAllowedTypes allowedTypes) { public UsernameValidation build() { return new UsernameValidation(minLength, maxLength, allowedTypes, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsersEnrollment.java b/src/main/java/com/auth0/client/mgmt/types/UsersEnrollment.java index 17c5706ff..7f8c1983d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsersEnrollment.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsersEnrollment.java @@ -347,5 +347,15 @@ public UsersEnrollment build() { lastAuth, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifiableCredentialTemplateResponse.java b/src/main/java/com/auth0/client/mgmt/types/VerifiableCredentialTemplateResponse.java index 1a17eb380..9558599ee 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifiableCredentialTemplateResponse.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifiableCredentialTemplateResponse.java @@ -418,5 +418,15 @@ public VerifiableCredentialTemplateResponse build() { updatedAt, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java index fc200d0d5..5c0244377 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyCustomDomainResponseContent.java @@ -256,6 +256,10 @@ public interface TypeStage { public interface _FinalStage { VerifyCustomDomainResponseContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    CNAME API key header.

    */ @@ -566,5 +570,17 @@ public VerifyCustomDomainResponseContent build() { certificate, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java index 940d7b9a6..fda1c69e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketRequestContent.java @@ -73,7 +73,7 @@ public String getUserId() { } /** - * @return ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger. + * @return ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger. */ @JsonProperty("client_id") public Optional getClientId() { @@ -163,6 +163,10 @@ public interface UserIdStage { public interface _FinalStage { VerifyEmailTicketRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    URL the user will be redirected to in the classic Universal Login experience once the ticket is used. Cannot be specified when using client_id or organization_id.

    */ @@ -171,7 +175,7 @@ public interface _FinalStage { _FinalStage resultUrl(String resultUrl); /** - *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger.

    + *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.

    */ _FinalStage clientId(Optional clientId); @@ -322,7 +326,7 @@ public _FinalStage organizationId(Optional organizationId) { } /** - *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger.

    + *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.

    * @return Reference to {@code this} so that method calls can be chained together. */ @java.lang.Override @@ -332,7 +336,7 @@ public _FinalStage clientId(String clientId) { } /** - *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's <a target='' href='https://auth0.com/docs/authenticate/login/auth0-universal-login/configure-default-login-routes#completing-the-password-reset-flow'>default login route</a> after the ticket is used. client_id is required to use the <a target='' href='https://auth0.com/docs/customize/actions/flows-and-triggers/post-change-password-flow'>Password Reset Post Challenge</a> trigger.

    + *

    ID of the client (application). If provided for tenants using the New Universal Login experience, the email template and UI displays application details, and the user is prompted to redirect to the application's default login route after the ticket is used. client_id is required to use the Password Reset Post Challenge trigger.

    */ @java.lang.Override @JsonSetter(value = "client_id", nulls = Nulls.SKIP) @@ -373,5 +377,17 @@ public VerifyEmailTicketRequestContent build() { identity, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java index d558bbb5d..2de3747c4 100644 --- a/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/VerifyEmailTicketResponseContent.java @@ -76,6 +76,10 @@ public interface TicketStage { public interface _FinalStage { VerifyEmailTicketResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); } @JsonIgnoreProperties(ignoreUnknown = true) @@ -109,5 +113,17 @@ public _FinalStage ticket(@NotNull String ticket) { public VerifyEmailTicketResponseContent build() { return new VerifyEmailTicketResponseContent(ticket, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java index e90447fbe..886307903 100644 --- a/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java +++ b/src/main/java/com/auth0/client/mgmt/types/X509CertificateCredential.java @@ -106,6 +106,10 @@ public interface PemStage { public interface _FinalStage { X509CertificateCredential build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    Friendly name for a credential.

    */ @@ -178,5 +182,17 @@ public _FinalStage name(Optional name) { public X509CertificateCredential build() { return new X509CertificateCredential(credentialType, name, pem, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticationMethodsClient.java index c9f133367..3206cae1e 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticationMethodsClient.java @@ -42,6 +42,14 @@ public CompletableFuture> list(Stri return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve detailed list of authentication methods associated with a specified user. + */ + public CompletableFuture> list( + String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve detailed list of authentication methods associated with a specified user. */ @@ -75,8 +83,8 @@ public CompletableFuture create( } /** - * Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values. - *
    <b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
    +     * Replace the specified user  authentication methods with supplied values.
    +     * 
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public CompletableFuture> set( @@ -85,8 +93,8 @@ public CompletableFuture> set( } /** - * Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values. - *
    <b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
    +     * Replace the specified user  authentication methods with supplied values.
    +     * 
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public CompletableFuture> set( @@ -118,21 +126,21 @@ public CompletableFuture get( } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture delete(String id, String authenticationMethodId) { return this.rawClient.delete(id, authenticationMethodId).thenApply(response -> response.body()); } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture delete(String id, String authenticationMethodId, RequestOptions requestOptions) { return this.rawClient.delete(id, authenticationMethodId, requestOptions).thenApply(response -> response.body()); } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture update( String id, String authenticationMethodId) { @@ -140,7 +148,15 @@ public CompletableFuture update( } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. + */ + public CompletableFuture update( + String id, String authenticationMethodId, RequestOptions requestOptions) { + return this.rawClient.update(id, authenticationMethodId, requestOptions).thenApply(response -> response.body()); + } + + /** + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request) { @@ -148,7 +164,7 @@ public CompletableFuture update( } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture update( String id, diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticatorsClient.java index 3c59a93dd..59538cad3 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncAuthenticatorsClient.java @@ -25,14 +25,14 @@ public AsyncRawAuthenticatorsClient withRawResponse() { } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture deleteAll(String id) { return this.rawClient.deleteAll(id).thenApply(response -> response.body()); } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture deleteAll(String id, RequestOptions requestOptions) { return this.rawClient.deleteAll(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncConnectedAccountsClient.java index 74e2b1285..f9551c133 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncConnectedAccountsClient.java @@ -34,6 +34,13 @@ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve all connected accounts associated with the user. + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve all connected accounts associated with the user. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncEnrollmentsClient.java index 83f2ec120..b57af8609 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncEnrollmentsClient.java @@ -27,14 +27,14 @@ public AsyncRawEnrollmentsClient withRawResponse() { } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public CompletableFuture> get(String id) { return this.rawClient.get(id).thenApply(response -> response.body()); } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public CompletableFuture> get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java index adc8d8681..df132f6b1 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncGroupsClient.java @@ -34,6 +34,14 @@ public CompletableFuture> get(Strin return this.rawClient.get(id).thenApply(response -> response.body()); } + /** + * List all groups to which this user belongs. + */ + public CompletableFuture> get( + String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).thenApply(response -> response.body()); + } + /** * List all groups to which this user belongs. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncIdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncIdentitiesClient.java index 72f68697d..5328e3f24 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncIdentitiesClient.java @@ -32,19 +32,19 @@ public AsyncRawIdentitiesClient withRawResponse() { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -52,10 +52,10 @@ public AsyncRawIdentitiesClient withRawResponse() {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture> link(String id) { return this.rawClient.link(id).thenApply(response -> response.body()); @@ -64,19 +64,19 @@ public CompletableFuture> link(String id) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -84,10 +84,42 @@ public CompletableFuture> link(String id) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    + */ + public CompletableFuture> link(String id, RequestOptions requestOptions) { + return this.rawClient.link(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. + *

    Note: There are two ways of invoking the endpoint:

    + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
      +     *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
      +     *       {
      +     *         "link_with": "SECONDARY_ACCOUNT_JWT"
      +     *       }
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
      +     *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *     Authorization: "Bearer YOUR_API_V2_TOKEN"
      +     *     {
      +     *       "provider": "SECONDARY_ACCOUNT_PROVIDER",
      +     *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
      +     *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
      +     *     }
      +     *     
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture> link(String id, LinkUserIdentityRequestContent request) { return this.rawClient.link(id, request).thenApply(response -> response.body()); @@ -96,19 +128,19 @@ public CompletableFuture> link(String id, LinkUserIdentityReq /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -116,10 +148,10 @@ public CompletableFuture> link(String id, LinkUserIdentityReq
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture> link( String id, LinkUserIdentityRequestContent request, RequestOptions requestOptions) { @@ -128,7 +160,7 @@ public CompletableFuture> link( /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public CompletableFuture> delete( String id, UserIdentityProviderEnum provider, String userId) { @@ -137,7 +169,7 @@ public CompletableFuture> delete( /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public CompletableFuture> delete( String id, UserIdentityProviderEnum provider, String userId, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncLogsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncLogsClient.java index 42f5d46c0..fec4f1b8d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncLogsClient.java @@ -29,9 +29,9 @@ public AsyncRawLogsClient withRawResponse() { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); @@ -39,9 +39,19 @@ public CompletableFuture> list(String id) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve log events for a specific user. + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture> list(String id, ListUserLogsRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); @@ -49,9 +59,9 @@ public CompletableFuture> list(String id, ListUserLogsRe /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture> list( String id, ListUserLogsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncMultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncMultifactorClient.java index 1cda1888e..686a5ec23 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncMultifactorClient.java @@ -26,28 +26,28 @@ public AsyncRawMultifactorClient withRawResponse() { } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public CompletableFuture invalidateRememberBrowser(String id) { return this.rawClient.invalidateRememberBrowser(id).thenApply(response -> response.body()); } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public CompletableFuture invalidateRememberBrowser(String id, RequestOptions requestOptions) { return this.rawClient.invalidateRememberBrowser(id, requestOptions).thenApply(response -> response.body()); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public CompletableFuture deleteProvider(String id, UserMultifactorProviderEnum provider) { return this.rawClient.deleteProvider(id, provider).thenApply(response -> response.body()); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public CompletableFuture deleteProvider( String id, UserMultifactorProviderEnum provider, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java index b60520d37..5314c570a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncOrganizationsClient.java @@ -28,14 +28,21 @@ public AsyncRawOrganizationsClient withRawResponse() { } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture> list( String id, ListUserOrganizationsRequestParameters request) { @@ -43,7 +50,7 @@ public CompletableFuture> list( } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncPermissionsClient.java index 90fc2792c..3a22eca4f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncPermissionsClient.java @@ -36,6 +36,13 @@ public CompletableFuture> list(String i return this.rawClient.list(id).thenApply(response -> response.body()); } + /** + * Retrieve all permissions associated with the user. + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve all permissions associated with the user. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java index 1c5e60840..1b429fb22 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawAuthenticationMethodsClient.java @@ -60,6 +60,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserAuthenticationMethodsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve detailed list of authentication methods associated with a specified user. */ @@ -83,6 +91,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -189,12 +202,16 @@ public CompletableFuture> create( String id, CreateUserAuthenticationMethodRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -203,7 +220,7 @@ public CompletableFuture<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings. + * Replace the specified user authentication methods with supplied values. + *
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public CompletableFuture>> set( @@ -291,18 +308,22 @@ public CompletableFuture<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings. + * Replace the specified user authentication methods with supplied values. + *
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public CompletableFuture>> set( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -311,7 +332,7 @@ public CompletableFuture> deleteAll(String id) { * Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. */ public CompletableFuture> deleteAll(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -471,15 +496,19 @@ public CompletableFuture> get( String id, String authenticationMethodId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -551,26 +580,30 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> delete(String id, String authenticationMethodId) { return delete(id, authenticationMethodId, null); } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> delete( String id, String authenticationMethodId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -638,7 +671,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> update( String id, String authenticationMethodId) { @@ -649,7 +682,19 @@ public CompletableFutureManage Authentication Methods with Management API. + */ + public CompletableFuture> update( + String id, String authenticationMethodId, RequestOptions requestOptions) { + return update( + id, + authenticationMethodId, + UpdateUserAuthenticationMethodRequestContent.builder().build(), + requestOptions); + } + + /** + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request) { @@ -657,20 +702,24 @@ public CompletableFutureManage Authentication Methods with Management API. */ public CompletableFuture> update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -679,7 +728,7 @@ public CompletableFutureManage Authentication Methods with Management API. */ public CompletableFuture> deleteAll(String id) { return deleteAll(id, null); } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public CompletableFuture> deleteAll(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authenticators") - .build(); + .addPathSegments("authenticators"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java index 890a9b7d9..6712777dd 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawConnectedAccountsClient.java @@ -48,6 +48,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, GetUserConnectedAccountsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all connected accounts associated with the user. */ @@ -71,6 +79,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java index ead3727b4..bd99fd7de 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawEnrollmentsClient.java @@ -38,25 +38,29 @@ public AsyncRawEnrollmentsClient(ClientOptions clientOptions) { } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public CompletableFuture>> get(String id) { return get(id, null); } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public CompletableFuture>> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("enrollments") - .build(); + .addPathSegments("enrollments"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java index ddd52d8b2..6f4456f41 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawFederatedConnectionsTokensetsClient.java @@ -49,14 +49,18 @@ public CompletableFuture>> list( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("federated-connections-tokensets") - .build(); + .addPathSegments("federated-connections-tokensets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -128,15 +132,19 @@ public CompletableFuture> delete(String id, Stri public CompletableFuture> delete( String id, String tokensetId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("federated-connections-tokensets") - .addPathSegment(tokensetId) - .build(); + .addPathSegment(tokensetId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java index 13f08fae0..39f1af133 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawGroupsClient.java @@ -48,6 +48,14 @@ public CompletableFuture>> get( + String id, RequestOptions requestOptions) { + return get(id, GetUserGroupsRequestParameters.builder().build(), requestOptions); + } + /** * List all groups to which this user belongs. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java index b6b3abd3e..e8e4622eb 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawIdentitiesClient.java @@ -45,19 +45,19 @@ public AsyncRawIdentitiesClient(ClientOptions clientOptions) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -65,10 +65,10 @@ public AsyncRawIdentitiesClient(ClientOptions clientOptions) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture>> link(String id) { return link(id, LinkUserIdentityRequestContent.builder().build()); @@ -77,19 +77,19 @@ public CompletableFuture>> link(Str /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -97,10 +97,43 @@ public CompletableFuture>> link(Str
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    + */ + public CompletableFuture>> link( + String id, RequestOptions requestOptions) { + return link(id, LinkUserIdentityRequestContent.builder().build(), requestOptions); + } + + /** + * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. + *

    Note: There are two ways of invoking the endpoint:

    + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
      +     *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
      +     *       {
      +     *         "link_with": "SECONDARY_ACCOUNT_JWT"
      +     *       }
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
      +     *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *     Authorization: "Bearer YOUR_API_V2_TOKEN"
      +     *     {
      +     *       "provider": "SECONDARY_ACCOUNT_PROVIDER",
      +     *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
      +     *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
      +     *     }
      +     *     
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture>> link( String id, LinkUserIdentityRequestContent request) { @@ -110,19 +143,19 @@ public CompletableFuture>> link( /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -130,19 +163,23 @@ public CompletableFuture>> link(
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public CompletableFuture>> link( String id, LinkUserIdentityRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("identities") - .build(); + .addPathSegments("identities"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -151,7 +188,7 @@ public CompletableFuture>> link( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -224,7 +261,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public CompletableFuture>> delete( String id, UserIdentityProviderEnum provider, String userId) { @@ -233,20 +270,24 @@ public CompletableFutureUnlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public CompletableFuture>> delete( String id, UserIdentityProviderEnum provider, String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("identities") .addPathSegment(provider.toString()) - .addPathSegment(userId) - .build(); + .addPathSegment(userId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java index ed65b39a8..6bf435ec1 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawLogsClient.java @@ -43,9 +43,9 @@ public AsyncRawLogsClient(ClientOptions clientOptions) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture>> list(String id) { return list(id, ListUserLogsRequestParameters.builder().build()); @@ -53,9 +53,20 @@ public CompletableFuture>> lis /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserLogsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve log events for a specific user. + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture>> list( String id, ListUserLogsRequestParameters request) { @@ -64,9 +75,9 @@ public CompletableFuture>> lis /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public CompletableFuture>> list( String id, ListUserLogsRequestParameters request, RequestOptions requestOptions) { @@ -84,6 +95,11 @@ public CompletableFuture>> lis } QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java index 4348caac4..5b3f0340b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawMultifactorClient.java @@ -37,26 +37,30 @@ public AsyncRawMultifactorClient(ClientOptions clientOptions) { } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public CompletableFuture> invalidateRememberBrowser(String id) { return invalidateRememberBrowser(id, null); } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public CompletableFuture> invalidateRememberBrowser( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("multifactor/actions") - .addPathSegments("invalidate-remember-browser") - .build(); + .addPathSegments("invalidate-remember-browser"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -114,7 +118,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public CompletableFuture> deleteProvider( String id, UserMultifactorProviderEnum provider) { @@ -122,19 +126,23 @@ public CompletableFuture> deleteProvider( } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public CompletableFuture> deleteProvider( String id, UserMultifactorProviderEnum provider, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("multifactor") - .addPathSegment(provider.toString()) - .build(); + .addPathSegment(provider.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java index 580e43a79..95940f6c1 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawOrganizationsClient.java @@ -41,14 +41,22 @@ public AsyncRawOrganizationsClient(ClientOptions clientOptions) { } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture>> list(String id) { return list(id, ListUserOrganizationsRequestParameters.builder().build()); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public CompletableFuture>> list( String id, ListUserOrganizationsRequestParameters request) { @@ -56,7 +64,7 @@ public CompletableFutureAuth0 Organizations. */ public CompletableFuture>> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -70,6 +78,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java index bbe821966..2dfb76215 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawPermissionsClient.java @@ -53,6 +53,14 @@ public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserPermissionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all permissions associated with the user. */ @@ -76,6 +84,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -181,12 +194,16 @@ public CompletableFuture> create( */ public CompletableFuture> create( String id, CreateUserPermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -195,7 +212,7 @@ public CompletableFuture> create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -271,12 +288,16 @@ public CompletableFuture> delete( */ public CompletableFuture> delete( String id, DeleteUserPermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -285,7 +306,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java index 589789eb1..4e3afc4a0 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRefreshTokenClient.java @@ -51,6 +51,14 @@ public CompletableFuture>> list( + String userId, RequestOptions requestOptions) { + return list(userId, ListRefreshTokensRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details for a user's refresh tokens. */ @@ -74,6 +82,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -169,14 +182,18 @@ public CompletableFuture> delete(String userId) * Delete all refresh tokens for a user. */ public CompletableFuture> delete(String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(userId) - .addPathSegments("refresh-tokens") - .build(); + .addPathSegments("refresh-tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java index 031a4da2f..93f01b84c 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRiskAssessmentsClient.java @@ -48,13 +48,17 @@ public CompletableFuture> clear(String id, Clear */ public CompletableFuture> clear( String id, ClearAssessorsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("risk-assessments") - .addPathSegments("clear") - .build(); + .addPathSegments("clear"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -63,7 +67,7 @@ public CompletableFuture> clear( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java index b4e3c2e09..1fb7bf0f7 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawRolesClient.java @@ -47,7 +47,7 @@ public AsyncRawRolesClient(ClientOptions clientOptions) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture>> list(String id) { return list(id, ListUserRolesRequestParameters.builder().build()); @@ -55,7 +55,16 @@ public CompletableFuture>> li /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    + */ + public CompletableFuture>> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserRolesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of all user roles currently assigned to a user. + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture>> list( String id, ListUserRolesRequestParameters request) { @@ -64,7 +73,7 @@ public CompletableFuture>> li /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture>> list( String id, ListUserRolesRequestParameters request, RequestOptions requestOptions) { @@ -78,6 +87,11 @@ public CompletableFuture>> li QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -158,25 +172,29 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public CompletableFuture> assign(String id, AssignUserRolesRequestContent request) { return assign(id, request, null); } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public CompletableFuture> assign( String id, AssignUserRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -185,7 +203,7 @@ public CompletableFuture> assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -250,7 +268,7 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) { /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public CompletableFuture> delete(String id, DeleteUserRolesRequestContent request) { return delete(id, request, null); @@ -258,16 +276,20 @@ public CompletableFuture> delete(String id, Dele /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public CompletableFuture> delete( String id, DeleteUserRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -276,7 +298,7 @@ public CompletableFuture> delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java index b594a1c40..b2773d9a0 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRawSessionsClient.java @@ -51,6 +51,14 @@ public CompletableFuture>> list( + String userId, RequestOptions requestOptions) { + return list(userId, ListUserSessionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details for a user's sessions. */ @@ -74,6 +82,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -169,14 +182,18 @@ public CompletableFuture> delete(String userId) * Delete all sessions for a user. */ public CompletableFuture> delete(String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(userId) - .addPathSegments("sessions") - .build(); + .addPathSegments("sessions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRefreshTokenClient.java index e6de3b15d..a74df1bc3 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRefreshTokenClient.java @@ -34,6 +34,14 @@ public CompletableFuture> list(S return this.rawClient.list(userId).thenApply(response -> response.body()); } + /** + * Retrieve details for a user's refresh tokens. + */ + public CompletableFuture> list( + String userId, RequestOptions requestOptions) { + return this.rawClient.list(userId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details for a user's refresh tokens. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncRolesClient.java index c88b631d1..5366e5934 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncRolesClient.java @@ -31,7 +31,7 @@ public AsyncRawRolesClient withRawResponse() { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture> list(String id) { return this.rawClient.list(id).thenApply(response -> response.body()); @@ -39,7 +39,15 @@ public CompletableFuture> list(String id) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    + */ + public CompletableFuture> list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).thenApply(response -> response.body()); + } + + /** + * Retrieve detailed list of all user roles currently assigned to a user. + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture> list(String id, ListUserRolesRequestParameters request) { return this.rawClient.list(id, request).thenApply(response -> response.body()); @@ -47,7 +55,7 @@ public CompletableFuture> list(String id, ListUserRoles /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public CompletableFuture> list( String id, ListUserRolesRequestParameters request, RequestOptions requestOptions) { @@ -55,16 +63,16 @@ public CompletableFuture> list( } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public CompletableFuture assign(String id, AssignUserRolesRequestContent request) { return this.rawClient.assign(id, request).thenApply(response -> response.body()); } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public CompletableFuture assign( String id, AssignUserRolesRequestContent request, RequestOptions requestOptions) { @@ -73,7 +81,7 @@ public CompletableFuture assign( /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public CompletableFuture delete(String id, DeleteUserRolesRequestContent request) { return this.rawClient.delete(id, request).thenApply(response -> response.body()); @@ -81,7 +89,7 @@ public CompletableFuture delete(String id, DeleteUserRolesRequestContent r /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public CompletableFuture delete( String id, DeleteUserRolesRequestContent request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/AsyncSessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/AsyncSessionsClient.java index 4d6f38ae0..975a026a4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AsyncSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AsyncSessionsClient.java @@ -34,6 +34,14 @@ public CompletableFuture> list(String return this.rawClient.list(userId).thenApply(response -> response.body()); } + /** + * Retrieve details for a user's sessions. + */ + public CompletableFuture> list( + String userId, RequestOptions requestOptions) { + return this.rawClient.list(userId, requestOptions).thenApply(response -> response.body()); + } + /** * Retrieve details for a user's sessions. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/AuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/AuthenticationMethodsClient.java index 551aae322..7dab2682d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AuthenticationMethodsClient.java @@ -41,6 +41,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve detailed list of authentication methods associated with a specified user. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve detailed list of authentication methods associated with a specified user. */ @@ -74,8 +81,8 @@ public CreateUserAuthenticationMethodResponseContent create( } /** - * Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values. - *
    <b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
    +     * Replace the specified user  authentication methods with supplied values.
    +     * 
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public List set(String id, List request) { @@ -83,8 +90,8 @@ public List set(String id, List<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings. + * Replace the specified user authentication methods with supplied values. + *
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public List set( @@ -116,28 +123,36 @@ public GetUserAuthenticationMethodResponseContent get( } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public void delete(String id, String authenticationMethodId) { this.rawClient.delete(id, authenticationMethodId).body(); } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public void delete(String id, String authenticationMethodId, RequestOptions requestOptions) { this.rawClient.delete(id, authenticationMethodId, requestOptions).body(); } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public UpdateUserAuthenticationMethodResponseContent update(String id, String authenticationMethodId) { return this.rawClient.update(id, authenticationMethodId).body(); } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. + */ + public UpdateUserAuthenticationMethodResponseContent update( + String id, String authenticationMethodId, RequestOptions requestOptions) { + return this.rawClient.update(id, authenticationMethodId, requestOptions).body(); + } + + /** + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public UpdateUserAuthenticationMethodResponseContent update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request) { @@ -145,7 +160,7 @@ public UpdateUserAuthenticationMethodResponseContent update( } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public UpdateUserAuthenticationMethodResponseContent update( String id, diff --git a/src/main/java/com/auth0/client/mgmt/users/AuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/AuthenticatorsClient.java index 5a1096e31..19a0de4bc 100644 --- a/src/main/java/com/auth0/client/mgmt/users/AuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/AuthenticatorsClient.java @@ -24,14 +24,14 @@ public RawAuthenticatorsClient withRawResponse() { } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public void deleteAll(String id) { this.rawClient.deleteAll(id).body(); } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public void deleteAll(String id, RequestOptions requestOptions) { this.rawClient.deleteAll(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/users/ConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/ConnectedAccountsClient.java index 71463074d..f3bbadfe5 100644 --- a/src/main/java/com/auth0/client/mgmt/users/ConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/ConnectedAccountsClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve all connected accounts associated with the user. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve all connected accounts associated with the user. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/EnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/EnrollmentsClient.java index e8c4b5b4c..f7ddd1926 100644 --- a/src/main/java/com/auth0/client/mgmt/users/EnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/EnrollmentsClient.java @@ -26,14 +26,14 @@ public RawEnrollmentsClient withRawResponse() { } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public List get(String id) { return this.rawClient.get(id).body(); } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public List get(String id, RequestOptions requestOptions) { return this.rawClient.get(id, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java index be7651cd6..1b13d5ba4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/GroupsClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable get(String id) { return this.rawClient.get(id).body(); } + /** + * List all groups to which this user belongs. + */ + public SyncPagingIterable get(String id, RequestOptions requestOptions) { + return this.rawClient.get(id, requestOptions).body(); + } + /** * List all groups to which this user belongs. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/IdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/IdentitiesClient.java index 0ba639a0e..bf0db9bf1 100644 --- a/src/main/java/com/auth0/client/mgmt/users/IdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/IdentitiesClient.java @@ -31,19 +31,19 @@ public RawIdentitiesClient withRawResponse() { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -51,10 +51,10 @@ public RawIdentitiesClient withRawResponse() {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public List link(String id) { return this.rawClient.link(id).body(); @@ -63,19 +63,19 @@ public List link(String id) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -83,10 +83,42 @@ public List link(String id) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    + */ + public List link(String id, RequestOptions requestOptions) { + return this.rawClient.link(id, requestOptions).body(); + } + + /** + * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. + *

    Note: There are two ways of invoking the endpoint:

    + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
      +     *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
      +     *       {
      +     *         "link_with": "SECONDARY_ACCOUNT_JWT"
      +     *       }
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
      +     *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *     Authorization: "Bearer YOUR_API_V2_TOKEN"
      +     *     {
      +     *       "provider": "SECONDARY_ACCOUNT_PROVIDER",
      +     *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
      +     *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
      +     *     }
      +     *     
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public List link(String id, LinkUserIdentityRequestContent request) { return this.rawClient.link(id, request).body(); @@ -95,19 +127,19 @@ public List link(String id, LinkUserIdentityRequestContent request /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -115,10 +147,10 @@ public List link(String id, LinkUserIdentityRequestContent request
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public List link(String id, LinkUserIdentityRequestContent request, RequestOptions requestOptions) { return this.rawClient.link(id, request, requestOptions).body(); @@ -126,7 +158,7 @@ public List link(String id, LinkUserIdentityRequestContent request /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public List delete( String id, UserIdentityProviderEnum provider, String userId) { @@ -135,7 +167,7 @@ public List delete( /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public List delete( String id, UserIdentityProviderEnum provider, String userId, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/LogsClient.java b/src/main/java/com/auth0/client/mgmt/users/LogsClient.java index 32474027d..6a759da9b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/LogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/LogsClient.java @@ -28,9 +28,9 @@ public RawLogsClient withRawResponse() { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); @@ -38,9 +38,19 @@ public SyncPagingIterable list(String id) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve log events for a specific user. + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public SyncPagingIterable list(String id, ListUserLogsRequestParameters request) { return this.rawClient.list(id, request).body(); @@ -48,9 +58,9 @@ public SyncPagingIterable list(String id, ListUserLogsRequestParameters req /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public SyncPagingIterable list( String id, ListUserLogsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/MultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/MultifactorClient.java index cbbd4e7c9..2dbf2d399 100644 --- a/src/main/java/com/auth0/client/mgmt/users/MultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/MultifactorClient.java @@ -25,28 +25,28 @@ public RawMultifactorClient withRawResponse() { } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public void invalidateRememberBrowser(String id) { this.rawClient.invalidateRememberBrowser(id).body(); } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public void invalidateRememberBrowser(String id, RequestOptions requestOptions) { this.rawClient.invalidateRememberBrowser(id, requestOptions).body(); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public void deleteProvider(String id, UserMultifactorProviderEnum provider) { this.rawClient.deleteProvider(id, provider).body(); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public void deleteProvider(String id, UserMultifactorProviderEnum provider, RequestOptions requestOptions) { this.rawClient.deleteProvider(id, provider, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java index e428d0e52..f25eeeed1 100644 --- a/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/OrganizationsClient.java @@ -27,21 +27,28 @@ public RawOrganizationsClient withRawResponse() { } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public SyncPagingIterable list(String id, ListUserOrganizationsRequestParameters request) { return this.rawClient.list(id, request).body(); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public SyncPagingIterable list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { diff --git a/src/main/java/com/auth0/client/mgmt/users/PermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/PermissionsClient.java index 387445507..97f9cd7fc 100644 --- a/src/main/java/com/auth0/client/mgmt/users/PermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/PermissionsClient.java @@ -35,6 +35,13 @@ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); } + /** + * Retrieve all permissions associated with the user. + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + /** * Retrieve all permissions associated with the user. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java index e61c090f7..e18e745b2 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticationMethodsClient.java @@ -55,6 +55,14 @@ public ManagementApiHttpResponse> l return list(id, ListUserAuthenticationMethodsRequestParameters.builder().build()); } + /** + * Retrieve detailed list of authentication methods associated with a specified user. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserAuthenticationMethodsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve detailed list of authentication methods associated with a specified user. */ @@ -78,6 +86,11 @@ public ManagementApiHttpResponse> l httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -152,12 +165,16 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse create( String id, CreateUserAuthenticationMethodRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -166,7 +183,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -218,8 +235,8 @@ public ManagementApiHttpResponse } /** - * Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values. - *
    <b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
    +     * Replace the specified user  authentication methods with supplied values.
    +     * 
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public ManagementApiHttpResponse> set( @@ -228,18 +245,22 @@ public ManagementApiHttpResponse<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings. + * Replace the specified user authentication methods with supplied values. + *
    Note: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.
          * 
    */ public ManagementApiHttpResponse> set( String id, List request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -248,7 +269,7 @@ public ManagementApiHttpResponse deleteAll(String id) { * Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone. */ public ManagementApiHttpResponse deleteAll(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authentication-methods") - .build(); + .addPathSegments("authentication-methods"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -363,15 +388,19 @@ public ManagementApiHttpResponse get public ManagementApiHttpResponse get( String id, String authenticationMethodId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -419,26 +448,30 @@ public ManagementApiHttpResponse get } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse delete(String id, String authenticationMethodId) { return delete(id, authenticationMethodId, null); } /** - * Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse delete( String id, String authenticationMethodId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -483,7 +516,7 @@ public ManagementApiHttpResponse delete( } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse update( String id, String authenticationMethodId) { @@ -494,7 +527,19 @@ public ManagementApiHttpResponse } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. + */ + public ManagementApiHttpResponse update( + String id, String authenticationMethodId, RequestOptions requestOptions) { + return update( + id, + authenticationMethodId, + UpdateUserAuthenticationMethodRequestContent.builder().build(), + requestOptions); + } + + /** + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request) { @@ -502,20 +547,24 @@ public ManagementApiHttpResponse } /** - * Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse update( String id, String authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("authentication-methods") - .addPathSegment(authenticationMethodId) - .build(); + .addPathSegment(authenticationMethodId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -524,7 +573,7 @@ public ManagementApiHttpResponse throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("PATCH", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java index 2d017cc5d..84bbdde39 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawAuthenticatorsClient.java @@ -30,24 +30,28 @@ public RawAuthenticatorsClient(ClientOptions clientOptions) { } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse deleteAll(String id) { return deleteAll(id, null); } /** - * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>. + * Remove all authenticators registered to a given user ID, such as OTP, email, phone, and push-notification. This action cannot be undone. For more information, review Manage Authentication Methods with Management API. */ public ManagementApiHttpResponse deleteAll(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("authenticators") - .build(); + .addPathSegments("authenticators"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java index b1492cc5f..1ae0c25e8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawConnectedAccountsClient.java @@ -43,6 +43,14 @@ public ManagementApiHttpResponse> list(Stri return list(id, GetUserConnectedAccountsRequestParameters.builder().build()); } + /** + * Retrieve all connected accounts associated with the user. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, GetUserConnectedAccountsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all connected accounts associated with the user. */ @@ -66,6 +74,11 @@ public ManagementApiHttpResponse> list( httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java index 64bed11ca..0617f71de 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawEnrollmentsClient.java @@ -34,24 +34,28 @@ public RawEnrollmentsClient(ClientOptions clientOptions) { } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public ManagementApiHttpResponse> get(String id) { return get(id, null); } /** - * Retrieve the first <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors">multi-factor authentication</a> enrollment that a specific user has confirmed. + * Retrieve the first multi-factor authentication enrollment that a specific user has confirmed. */ public ManagementApiHttpResponse> get(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("enrollments") - .build(); + .addPathSegments("enrollments"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java index b20d61cff..b74867d4d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawFederatedConnectionsTokensetsClient.java @@ -44,14 +44,18 @@ public ManagementApiHttpResponse> list(String * List active federated connections tokensets for a provided user */ public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("federated-connections-tokensets") - .build(); + .addPathSegments("federated-connections-tokensets"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -100,15 +104,19 @@ public ManagementApiHttpResponse delete(String id, String tokensetId) { } public ManagementApiHttpResponse delete(String id, String tokensetId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("federated-connections-tokensets") - .addPathSegment(tokensetId) - .build(); + .addPathSegment(tokensetId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java index 9e795c8ab..320b89501 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawGroupsClient.java @@ -43,6 +43,14 @@ public ManagementApiHttpResponse> g return get(id, GetUserGroupsRequestParameters.builder().build()); } + /** + * List all groups to which this user belongs. + */ + public ManagementApiHttpResponse> get( + String id, RequestOptions requestOptions) { + return get(id, GetUserGroupsRequestParameters.builder().build(), requestOptions); + } + /** * List all groups to which this user belongs. */ @@ -74,6 +82,11 @@ public ManagementApiHttpResponse> g httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java b/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java index 5fe5447af..a2d467933 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawIdentitiesClient.java @@ -41,19 +41,19 @@ public RawIdentitiesClient(ClientOptions clientOptions) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -61,10 +61,10 @@ public RawIdentitiesClient(ClientOptions clientOptions) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public ManagementApiHttpResponse> link(String id) { return link(id, LinkUserIdentityRequestContent.builder().build()); @@ -73,19 +73,19 @@ public ManagementApiHttpResponse> link(String id) { /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -93,10 +93,42 @@ public ManagementApiHttpResponse> link(String id) {
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    + */ + public ManagementApiHttpResponse> link(String id, RequestOptions requestOptions) { + return link(id, LinkUserIdentityRequestContent.builder().build(), requestOptions); + } + + /** + * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. + *

    Note: There are two ways of invoking the endpoint:

    + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
      +     *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
      +     *       {
      +     *         "link_with": "SECONDARY_ACCOUNT_JWT"
      +     *       }
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
      +     *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
      +     *     Authorization: "Bearer YOUR_API_V2_TOKEN"
      +     *     {
      +     *       "provider": "SECONDARY_ACCOUNT_PROVIDER",
      +     *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
      +     *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
      +     *     }
      +     *     
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public ManagementApiHttpResponse> link(String id, LinkUserIdentityRequestContent request) { return link(id, request, null); @@ -105,19 +137,19 @@ public ManagementApiHttpResponse> link(String id, LinkUserIde /** * Link two user accounts together forming a primary and secondary relationship. On successful linking, the endpoint returns the new array of the primary account identities. *

    Note: There are two ways of invoking the endpoint:

    - *

    <ul> - * <li>With the authenticated primary account's JWT in the Authorization header, which has the <code>update:current_user_identities</code> scope: - * <pre> + *

      + *
    • With the authenticated primary account's JWT in the Authorization header, which has the update:current_user_identities scope: + *
            *       POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *       Authorization: "Bearer PRIMARY_ACCOUNT_JWT"
            *       {
            *         "link_with": "SECONDARY_ACCOUNT_JWT"
            *       }
      -     *     </pre>
      -     *     In this case, only the <code>link_with</code> param is required in the body, which also contains the JWT obtained upon the secondary account's authentication.
      -     *   </li>
      -     *   <li>With a token generated by the API V2 containing the <code>update:users</code> scope:
      -     *     <pre>
      +     *     
      + * In this case, only the link_with param is required in the body, which also contains the JWT obtained upon the secondary account's authentication. + *
    • + *
    • With a token generated by the API V2 containing the update:users scope: + *
            *     POST /api/v2/users/PRIMARY_ACCOUNT_USER_ID/identities
            *     Authorization: "Bearer YOUR_API_V2_TOKEN"
            *     {
      @@ -125,19 +157,23 @@ public ManagementApiHttpResponse> link(String id, LinkUserIde
            *       "connection_id": "SECONDARY_ACCOUNT_CONNECTION_ID(OPTIONAL)",
            *       "user_id": "SECONDARY_ACCOUNT_USER_ID"
            *     }
      -     *     </pre>
      -     *     In this case you need to send <code>provider</code> and <code>user_id</code> in the body. Optionally you can also send the <code>connection_id</code> param which is suitable for identifying a particular database connection for the 'auth0' provider.
      -     *   </li>
      -     * </ul>

      + *
      + * In this case you need to send provider and user_id in the body. Optionally you can also send the connection_id param which is suitable for identifying a particular database connection for the 'auth0' provider. + *
    • + *

    */ public ManagementApiHttpResponse> link( String id, LinkUserIdentityRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("identities") - .build(); + .addPathSegments("identities"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -146,7 +182,7 @@ public ManagementApiHttpResponse> link( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -196,7 +232,7 @@ public ManagementApiHttpResponse> link( /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public ManagementApiHttpResponse> delete( String id, UserIdentityProviderEnum provider, String userId) { @@ -205,20 +241,24 @@ public ManagementApiHttpResponse> de /** * Unlink a specific secondary account from a target user. This action requires the ID of both the target user and the secondary account. - *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review <a href="https://auth0.com/docs/manage-users/user-accounts/user-account-linking/unlink-user-accounts">Unlink User Accounts</a>.

    + *

    Unlinking the secondary account removes it from the identities array of the target user and creates a new standalone profile for the secondary account. To learn more, review Unlink User Accounts.

    */ public ManagementApiHttpResponse> delete( String id, UserIdentityProviderEnum provider, String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("identities") .addPathSegment(provider.toString()) - .addPathSegment(userId) - .build(); + .addPathSegment(userId); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java index ff8fb9dd1..fde9cf5d9 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawLogsClient.java @@ -38,9 +38,9 @@ public RawLogsClient(ClientOptions clientOptions) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public ManagementApiHttpResponse> list(String id) { return list(id, ListUserLogsRequestParameters.builder().build()); @@ -48,9 +48,19 @@ public ManagementApiHttpResponse> list(String id) { /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + */ + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListUserLogsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve log events for a specific user. + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public ManagementApiHttpResponse> list(String id, ListUserLogsRequestParameters request) { return list(id, request, null); @@ -58,9 +68,9 @@ public ManagementApiHttpResponse> list(String id, ListUs /** * Retrieve log events for a specific user. - *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see <a href="https://auth0.com/docs/logs/log-event-type-codes">Log Event Type Codes</a>.

    - *

    For more information on the list of fields that can be used in sort, see <a href="https://auth0.com/docs/logs/log-search-query-syntax#searchable-fields">Searchable Fields</a>.

    - *

    Auth0 <a href="https://auth0.com/docs/logs/retrieve-log-events-using-mgmt-api#limitations">limits the number of logs</a> you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    + *

    Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.

    + *

    For more information on the list of fields that can be used in sort, see Searchable Fields.

    + *

    Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.

    */ public ManagementApiHttpResponse> list( String id, ListUserLogsRequestParameters request, RequestOptions requestOptions) { @@ -78,6 +88,11 @@ public ManagementApiHttpResponse> list( } QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java b/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java index 893c2dc74..f71433237 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawMultifactorClient.java @@ -33,25 +33,29 @@ public RawMultifactorClient(ClientOptions clientOptions) { } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public ManagementApiHttpResponse invalidateRememberBrowser(String id) { return invalidateRememberBrowser(id, null); } /** - * Invalidate all remembered browsers across all <a href="https://auth0.com/docs/multifactor-authentication">authentication factors</a> for a user. + * Invalidate all remembered browsers across all authentication factors for a user. */ public ManagementApiHttpResponse invalidateRememberBrowser(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("multifactor/actions") - .addPathSegments("invalidate-remember-browser") - .build(); + .addPathSegments("invalidate-remember-browser"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", RequestBody.create("", null)) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -90,26 +94,30 @@ public ManagementApiHttpResponse invalidateRememberBrowser(String id, Requ } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public ManagementApiHttpResponse deleteProvider(String id, UserMultifactorProviderEnum provider) { return deleteProvider(id, provider, null); } /** - * Remove a <a href="https://auth0.com/docs/multifactor-authentication">multifactor</a> authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. + * Remove a multifactor authentication configuration from a user's account. This forces the user to manually reconfigure the multi-factor provider. */ public ManagementApiHttpResponse deleteProvider( String id, UserMultifactorProviderEnum provider, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("multifactor") - .addPathSegment(provider.toString()) - .build(); + .addPathSegment(provider.toString()); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java index f0c7ce991..af8879623 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawOrganizationsClient.java @@ -36,14 +36,21 @@ public RawOrganizationsClient(ClientOptions clientOptions) { } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public ManagementApiHttpResponse> list(String id) { return list(id, ListUserOrganizationsRequestParameters.builder().build()); } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. + */ + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListUserOrganizationsRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public ManagementApiHttpResponse> list( String id, ListUserOrganizationsRequestParameters request) { @@ -51,7 +58,7 @@ public ManagementApiHttpResponse> list( } /** - * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review <a href="https://auth0.com/docs/manage-users/organizations">Auth0 Organizations</a>. + * Retrieve list of the specified user's current Organization memberships. User must be specified by user ID. For more information, review Auth0 Organizations. */ public ManagementApiHttpResponse> list( String id, ListUserOrganizationsRequestParameters request, RequestOptions requestOptions) { @@ -65,6 +72,11 @@ public ManagementApiHttpResponse> list( httpUrl, "per_page", request.getPerPage().orElse(50), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) diff --git a/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java index bfcfa7390..3ecfaa25d 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawPermissionsClient.java @@ -48,6 +48,14 @@ public ManagementApiHttpResponse> list( return list(id, ListUserPermissionsRequestParameters.builder().build()); } + /** + * Retrieve all permissions associated with the user. + */ + public ManagementApiHttpResponse> list( + String id, RequestOptions requestOptions) { + return list(id, ListUserPermissionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve all permissions associated with the user. */ @@ -71,6 +79,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -142,12 +155,16 @@ public ManagementApiHttpResponse create(String id, CreateUserPermissionsRe */ public ManagementApiHttpResponse create( String id, CreateUserPermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +173,7 @@ public ManagementApiHttpResponse create( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -210,12 +227,16 @@ public ManagementApiHttpResponse delete(String id, DeleteUserPermissionsRe */ public ManagementApiHttpResponse delete( String id, DeleteUserPermissionsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("permissions") - .build(); + .addPathSegments("permissions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -224,7 +245,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java index 8e393c6e6..468cb010b 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRefreshTokenClient.java @@ -45,6 +45,14 @@ public ManagementApiHttpResponse return list(userId, ListRefreshTokensRequestParameters.builder().build()); } + /** + * Retrieve details for a user's refresh tokens. + */ + public ManagementApiHttpResponse> list( + String userId, RequestOptions requestOptions) { + return list(userId, ListRefreshTokensRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details for a user's refresh tokens. */ @@ -68,6 +76,11 @@ public ManagementApiHttpResponse httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -135,14 +148,18 @@ public ManagementApiHttpResponse delete(String userId) { * Delete all refresh tokens for a user. */ public ManagementApiHttpResponse delete(String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(userId) - .addPathSegments("refresh-tokens") - .build(); + .addPathSegments("refresh-tokens"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java index a02613d42..35b0673d4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRiskAssessmentsClient.java @@ -44,13 +44,17 @@ public ManagementApiHttpResponse clear(String id, ClearAssessorsRequestCon */ public ManagementApiHttpResponse clear( String id, ClearAssessorsRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) .addPathSegments("risk-assessments") - .addPathSegments("clear") - .build(); + .addPathSegments("clear"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -59,7 +63,7 @@ public ManagementApiHttpResponse clear( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java b/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java index 6f9fbd20c..676aa2b40 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawRolesClient.java @@ -42,7 +42,7 @@ public RawRolesClient(ClientOptions clientOptions) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public ManagementApiHttpResponse> list(String id) { return list(id, ListUserRolesRequestParameters.builder().build()); @@ -50,7 +50,15 @@ public ManagementApiHttpResponse> list(String id) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    + */ + public ManagementApiHttpResponse> list(String id, RequestOptions requestOptions) { + return list(id, ListUserRolesRequestParameters.builder().build(), requestOptions); + } + + /** + * Retrieve detailed list of all user roles currently assigned to a user. + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public ManagementApiHttpResponse> list(String id, ListUserRolesRequestParameters request) { return list(id, request, null); @@ -58,7 +66,7 @@ public ManagementApiHttpResponse> list(String id, ListU /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public ManagementApiHttpResponse> list( String id, ListUserRolesRequestParameters request, RequestOptions requestOptions) { @@ -72,6 +80,11 @@ public ManagementApiHttpResponse> list( QueryStringMapper.addQueryParameter(httpUrl, "page", request.getPage().orElse(0), false); QueryStringMapper.addQueryParameter( httpUrl, "include_totals", request.getIncludeTotals().orElse(true), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -125,25 +138,29 @@ public ManagementApiHttpResponse> list( } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public ManagementApiHttpResponse assign(String id, AssignUserRolesRequestContent request) { return assign(id, request, null); } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public ManagementApiHttpResponse assign( String id, AssignUserRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -152,7 +169,7 @@ public ManagementApiHttpResponse assign( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("POST", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") @@ -196,7 +213,7 @@ public ManagementApiHttpResponse assign( /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public ManagementApiHttpResponse delete(String id, DeleteUserRolesRequestContent request) { return delete(id, request, null); @@ -204,16 +221,20 @@ public ManagementApiHttpResponse delete(String id, DeleteUserRolesRequestC /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public ManagementApiHttpResponse delete( String id, DeleteUserRolesRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(id) - .addPathSegments("roles") - .build(); + .addPathSegments("roles"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -222,7 +243,7 @@ public ManagementApiHttpResponse delete( throw new ManagementException("Failed to serialize request", e); } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", body) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Content-Type", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java index 020392ab1..a21ed36a3 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RawSessionsClient.java @@ -45,6 +45,14 @@ public ManagementApiHttpResponse> lis return list(userId, ListUserSessionsRequestParameters.builder().build()); } + /** + * Retrieve details for a user's sessions. + */ + public ManagementApiHttpResponse> list( + String userId, RequestOptions requestOptions) { + return list(userId, ListUserSessionsRequestParameters.builder().build(), requestOptions); + } + /** * Retrieve details for a user's sessions. */ @@ -68,6 +76,11 @@ public ManagementApiHttpResponse> lis httpUrl, "from", request.getFrom().orElse(null), false); } QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -135,14 +148,18 @@ public ManagementApiHttpResponse delete(String userId) { * Delete all sessions for a user. */ public ManagementApiHttpResponse delete(String userId, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("users") .addPathSegment(userId) - .addPathSegments("sessions") - .build(); + .addPathSegments("sessions"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") diff --git a/src/main/java/com/auth0/client/mgmt/users/RefreshTokenClient.java b/src/main/java/com/auth0/client/mgmt/users/RefreshTokenClient.java index d9032df25..c94d851cf 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RefreshTokenClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RefreshTokenClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable list(String userId) { return this.rawClient.list(userId).body(); } + /** + * Retrieve details for a user's refresh tokens. + */ + public SyncPagingIterable list(String userId, RequestOptions requestOptions) { + return this.rawClient.list(userId, requestOptions).body(); + } + /** * Retrieve details for a user's refresh tokens. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/RolesClient.java b/src/main/java/com/auth0/client/mgmt/users/RolesClient.java index 3be2b7c43..4f43afd0a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/RolesClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/RolesClient.java @@ -30,7 +30,7 @@ public RawRolesClient withRawResponse() { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public SyncPagingIterable list(String id) { return this.rawClient.list(id).body(); @@ -38,7 +38,15 @@ public SyncPagingIterable list(String id) { /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    + */ + public SyncPagingIterable list(String id, RequestOptions requestOptions) { + return this.rawClient.list(id, requestOptions).body(); + } + + /** + * Retrieve detailed list of all user roles currently assigned to a user. + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public SyncPagingIterable list(String id, ListUserRolesRequestParameters request) { return this.rawClient.list(id, request).body(); @@ -46,7 +54,7 @@ public SyncPagingIterable list(String id, ListUserRolesRequestParameters r /** * Retrieve detailed list of all user roles currently assigned to a user. - *

    <b>Note</b>: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/get-organization-member-roles">Get user roles assigned to an Organization member</a>.

    + *

    Note: This action retrieves all roles assigned to a user in the context of your whole tenant. To retrieve Organization-specific roles, use the following endpoint: Get user roles assigned to an Organization member.

    */ public SyncPagingIterable list( String id, ListUserRolesRequestParameters request, RequestOptions requestOptions) { @@ -54,16 +62,16 @@ public SyncPagingIterable list( } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public void assign(String id, AssignUserRolesRequestContent request) { this.rawClient.assign(id, request).body(); } /** - * Assign one or more existing user roles to a user. For more information, review <a href="https://auth0.com/docs/manage-users/access-control/rbac">Role-Based Access Control</a>. - *

    <b>Note</b>: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/post-organization-member-roles">Assign user roles to an Organization member</a>.

    + * Assign one or more existing user roles to a user. For more information, review Role-Based Access Control. + *

    Note: New roles cannot be created through this action. Additionally, this action is used to assign roles to a user in the context of your whole tenant. To assign roles in the context of a specific Organization, use the following endpoint: Assign user roles to an Organization member.

    */ public void assign(String id, AssignUserRolesRequestContent request, RequestOptions requestOptions) { this.rawClient.assign(id, request, requestOptions).body(); @@ -71,7 +79,7 @@ public void assign(String id, AssignUserRolesRequestContent request, RequestOpti /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public void delete(String id, DeleteUserRolesRequestContent request) { this.rawClient.delete(id, request).body(); @@ -79,7 +87,7 @@ public void delete(String id, DeleteUserRolesRequestContent request) { /** * Remove one or more specified user roles assigned to a user. - *

    <b>Note</b>: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: <a href="https://auth0.com/docs/api/management/v2/organizations/delete-organization-member-roles">Delete user roles from an Organization member</a>.

    + *

    Note: This action removes a role from a user in the context of your whole tenant. If you want to unassign a role from a user in the context of a specific Organization, use the following endpoint: Delete user roles from an Organization member.

    */ public void delete(String id, DeleteUserRolesRequestContent request, RequestOptions requestOptions) { this.rawClient.delete(id, request, requestOptions).body(); diff --git a/src/main/java/com/auth0/client/mgmt/users/SessionsClient.java b/src/main/java/com/auth0/client/mgmt/users/SessionsClient.java index 56304204a..3ba0eebec 100644 --- a/src/main/java/com/auth0/client/mgmt/users/SessionsClient.java +++ b/src/main/java/com/auth0/client/mgmt/users/SessionsClient.java @@ -33,6 +33,13 @@ public SyncPagingIterable list(String userId) { return this.rawClient.list(userId).body(); } + /** + * Retrieve details for a user's sessions. + */ + public SyncPagingIterable list(String userId, RequestOptions requestOptions) { + return this.rawClient.list(userId, requestOptions).body(); + } + /** * Retrieve details for a user's sessions. */ diff --git a/src/main/java/com/auth0/client/mgmt/users/types/AssignUserRolesRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/AssignUserRolesRequestContent.java index b423d70e4..4282d81a9 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/AssignUserRolesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/AssignUserRolesRequestContent.java @@ -108,5 +108,15 @@ public Builder addAllRoles(List roles) { public AssignUserRolesRequestContent build() { return new AssignUserRolesRequestContent(roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java index a36a0ce02..54c8a842c 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ClearAssessorsRequestContent.java @@ -93,6 +93,10 @@ public interface ConnectionStage { public interface _FinalStage { ClearAssessorsRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    List of assessors to clear.

    */ @@ -172,5 +176,17 @@ public _FinalStage assessors(List assessors) { public ClearAssessorsRequestContent build() { return new ClearAssessorsRequestContent(connection, assessors, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/CreateUserAuthenticationMethodRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/CreateUserAuthenticationMethodRequestContent.java index 52a0d0ed5..57cbfd387 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/CreateUserAuthenticationMethodRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/CreateUserAuthenticationMethodRequestContent.java @@ -188,6 +188,10 @@ public interface TypeStage { public interface _FinalStage { CreateUserAuthenticationMethodRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + /** *

    A human-readable label to identify the authentication method.

    */ @@ -458,5 +462,17 @@ public CreateUserAuthenticationMethodRequestContent build() { relyingPartyIdentifier, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/CreateUserPermissionsRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/CreateUserPermissionsRequestContent.java index a422a33db..8fc1ec1a9 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/CreateUserPermissionsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/CreateUserPermissionsRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllPermissions(List permissions) { public CreateUserPermissionsRequestContent build() { return new CreateUserPermissionsRequestContent(permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserPermissionsRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserPermissionsRequestContent.java index 2bffd3434..1ef30bd49 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserPermissionsRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserPermissionsRequestContent.java @@ -111,5 +111,15 @@ public Builder addAllPermissions(List permissions) { public DeleteUserPermissionsRequestContent build() { return new DeleteUserPermissionsRequestContent(permissions, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserRolesRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserRolesRequestContent.java index 09a108eae..b7fdb0d3c 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserRolesRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/DeleteUserRolesRequestContent.java @@ -108,5 +108,15 @@ public Builder addAllRoles(List roles) { public DeleteUserRolesRequestContent build() { return new DeleteUserRolesRequestContent(roles, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java index e57ece646..d4925bfb5 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/GetUserConnectedAccountsRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public GetUserConnectedAccountsRequestParameters build() { return new GetUserConnectedAccountsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java index 40c527b37..b2e3eb57f 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/GetUserGroupsRequestParameters.java @@ -303,5 +303,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public GetUserGroupsRequestParameters build() { return new GetUserGroupsRequestParameters(fields, includeFields, from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java index 0bbdb78b4..b8ad00339 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/LinkUserIdentityRequestContent.java @@ -179,5 +179,15 @@ public Builder linkWith(String linkWith) { public LinkUserIdentityRequestContent build() { return new LinkUserIdentityRequestContent(provider, connectionId, userId, linkWith, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java index 1b9177d8b..b55551445 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListRefreshTokensRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListRefreshTokensRequestParameters build() { return new ListRefreshTokensRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java index 00fc7d1da..84fd3d9f4 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserAuthenticationMethodsRequestParameters.java @@ -225,5 +225,15 @@ public ListUserAuthenticationMethodsRequestParameters build() { return new ListUserAuthenticationMethodsRequestParameters( page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java index fa4a45aef..16ea389a8 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserLogsRequestParameters.java @@ -285,5 +285,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListUserLogsRequestParameters build() { return new ListUserLogsRequestParameters(page, perPage, sort, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java index 31ad9a385..904d481ab 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserOrganizationsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListUserOrganizationsRequestParameters build() { return new ListUserOrganizationsRequestParameters(page, perPage, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java index de68b9be7..0c757ded6 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserPermissionsRequestParameters.java @@ -224,5 +224,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListUserPermissionsRequestParameters build() { return new ListUserPermissionsRequestParameters(perPage, page, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java index 4b2114ea6..4ad13e379 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserRolesRequestParameters.java @@ -223,5 +223,15 @@ public Builder includeTotals(Nullable includeTotals) { public ListUserRolesRequestParameters build() { return new ListUserRolesRequestParameters(perPage, page, includeTotals, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java index 6238eeb0c..ee8ed41aa 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/ListUserSessionsRequestParameters.java @@ -180,5 +180,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListUserSessionsRequestParameters build() { return new ListUserSessionsRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java b/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java index 981906ce3..7378b3b8a 100644 --- a/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/users/types/UpdateUserAuthenticationMethodRequestContent.java @@ -126,5 +126,15 @@ public UpdateUserAuthenticationMethodRequestContent build() { return new UpdateUserAuthenticationMethodRequestContent( name, preferredAuthenticationMethod, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java index 86ecc370b..f87975b4f 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/AsyncRawTemplatesClient.java @@ -58,6 +58,14 @@ public AsyncRawTemplatesClient(ClientOptions clientOptions) { return list(ListVerifiableCredentialTemplatesRequestParameters.builder().build()); } + /** + * List a verifiable credential templates. + */ + public CompletableFuture>> list( + RequestOptions requestOptions) { + return list(ListVerifiableCredentialTemplatesRequestParameters.builder().build(), requestOptions); + } + /** * List a verifiable credential templates. */ @@ -79,6 +87,11 @@ public CompletableFuture { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -179,10 +192,14 @@ public CompletableFuture> create( CreateVerifiableCredentialTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("verifiable-credentials/verification/templates") - .build(); + .addPathSegments("verifiable-credentials/verification/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -191,7 +208,7 @@ public CompletableFuture> get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -363,13 +384,17 @@ public CompletableFuture> delete(String id) { * Delete a verifiable credential template. */ public CompletableFuture> delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -440,6 +465,15 @@ public CompletableFuture> update( + String id, RequestOptions requestOptions) { + return update( + id, UpdateVerifiableCredentialTemplateRequestContent.builder().build(), requestOptions); + } + /** * Update a verifiable credential template. */ @@ -453,11 +487,15 @@ public CompletableFuture> update( String id, UpdateVerifiableCredentialTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -466,7 +504,7 @@ public CompletableFuture response.body()); } + /** + * List a verifiable credential templates. + */ + public CompletableFuture> list( + RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).thenApply(response -> response.body()); + } + /** * List a verifiable credential templates. */ @@ -107,6 +115,14 @@ public CompletableFuture upda return this.rawClient.update(id).thenApply(response -> response.body()); } + /** + * Update a verifiable credential template. + */ + public CompletableFuture update( + String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).thenApply(response -> response.body()); + } + /** * Update a verifiable credential template. */ diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java index edfdc64e5..3f7b5ee2d 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/RawTemplatesClient.java @@ -52,6 +52,14 @@ public ManagementApiHttpResponse> list( + RequestOptions requestOptions) { + return list(ListVerifiableCredentialTemplatesRequestParameters.builder().build(), requestOptions); + } + /** * List a verifiable credential templates. */ @@ -73,6 +81,11 @@ public ManagementApiHttpResponse { + httpUrl.addQueryParameter(_key, _value); + }); + } Request.Builder _requestBuilder = new Request.Builder() .url(httpUrl.build()) .method("GET", null) @@ -144,10 +157,14 @@ public ManagementApiHttpResponse create( CreateVerifiableCredentialTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() - .addPathSegments("verifiable-credentials/verification/templates") - .build(); + .addPathSegments("verifiable-credentials/verification/templates"); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -156,7 +173,7 @@ public ManagementApiHttpResponse */ public ManagementApiHttpResponse get( String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("GET", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -280,13 +301,17 @@ public ManagementApiHttpResponse delete(String id) { * Delete a verifiable credential template. */ public ManagementApiHttpResponse delete(String id, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } Request okhttpRequest = new Request.Builder() - .url(httpUrl) + .url(httpUrl.build()) .method("DELETE", null) .headers(Headers.of(clientOptions.headers(requestOptions))) .addHeader("Accept", "application/json") @@ -335,6 +360,15 @@ public ManagementApiHttpResponse update( + String id, RequestOptions requestOptions) { + return update( + id, UpdateVerifiableCredentialTemplateRequestContent.builder().build(), requestOptions); + } + /** * Update a verifiable credential template. */ @@ -348,11 +382,15 @@ public ManagementApiHttpResponse update( String id, UpdateVerifiableCredentialTemplateRequestContent request, RequestOptions requestOptions) { - HttpUrl httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) .newBuilder() .addPathSegments("verifiable-credentials/verification/templates") - .addPathSegment(id) - .build(); + .addPathSegment(id); + if (requestOptions != null) { + requestOptions.getQueryParameters().forEach((_key, _value) -> { + httpUrl.addQueryParameter(_key, _value); + }); + } RequestBody body; try { body = RequestBody.create( @@ -361,7 +399,7 @@ public ManagementApiHttpResponse list() { return this.rawClient.list().body(); } + /** + * List a verifiable credential templates. + */ + public SyncPagingIterable list(RequestOptions requestOptions) { + return this.rawClient.list(requestOptions).body(); + } + /** * List a verifiable credential templates. */ @@ -105,6 +112,13 @@ public UpdateVerifiableCredentialTemplateResponseContent update(String id) { return this.rawClient.update(id).body(); } + /** + * Update a verifiable credential template. + */ + public UpdateVerifiableCredentialTemplateResponseContent update(String id, RequestOptions requestOptions) { + return this.rawClient.update(id, requestOptions).body(); + } + /** * Update a verifiable credential template. */ diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/CreateVerifiableCredentialTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/CreateVerifiableCredentialTemplateRequestContent.java index 6c913de6c..db4cdf4eb 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/CreateVerifiableCredentialTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/CreateVerifiableCredentialTemplateRequestContent.java @@ -162,6 +162,10 @@ public interface WellKnownTrustedIssuersStage { public interface _FinalStage { CreateVerifiableCredentialTemplateRequestContent build(); + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + _FinalStage customCertificateAuthority(@Nullable OptionalNullable customCertificateAuthority); _FinalStage customCertificateAuthority(String customCertificateAuthority); @@ -290,5 +294,17 @@ public CreateVerifiableCredentialTemplateRequestContent build() { wellKnownTrustedIssuers, additionalProperties); } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/ListVerifiableCredentialTemplatesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/ListVerifiableCredentialTemplatesRequestParameters.java index ada4bfbdd..d1719e156 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/ListVerifiableCredentialTemplatesRequestParameters.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/ListVerifiableCredentialTemplatesRequestParameters.java @@ -181,5 +181,15 @@ public Builder take(com.auth0.client.mgmt.core.Nullable take) { public ListVerifiableCredentialTemplatesRequestParameters build() { return new ListVerifiableCredentialTemplatesRequestParameters(from, take, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/UpdateVerifiableCredentialTemplateRequestContent.java b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/UpdateVerifiableCredentialTemplateRequestContent.java index 880bdc1b9..73f4b24a7 100644 --- a/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/UpdateVerifiableCredentialTemplateRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/verifiablecredentials/verification/types/UpdateVerifiableCredentialTemplateRequestContent.java @@ -370,5 +370,15 @@ public UpdateVerifiableCredentialTemplateRequestContent build() { return new UpdateVerifiableCredentialTemplateRequestContent( name, type, dialect, presentation, wellKnownTrustedIssuers, version, additionalProperties); } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } } } diff --git a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java index d64e631bd..43aeff40d 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsVersionsWireTest.java @@ -64,11 +64,9 @@ public void testList() throws Exception { @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{\"id\":\"id\",\"msg\":\"msg\",\"url\":\"url\"}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testGet_response.json"))); GetActionVersionResponseContent response = client.actions().versions().get("actionId", "id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -77,77 +75,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"msg\": \"msg\",\n" - + " \"url\": \"url\"\n" - + " }\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -181,11 +110,9 @@ else if (actualResponseNode.has("kind")) @Test public void testDeploy() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{\"id\":\"id\",\"msg\":\"msg\",\"url\":\"url\"}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testDeploy_response.json"))); DeployActionVersionResponseContent response = client.actions().versions().deploy("actionId", "id", OptionalNullable.absent()); RecordedRequest request = server.takeRequest(); @@ -195,77 +122,8 @@ public void testDeploy() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"msg\": \"msg\",\n" - + " \"url\": \"url\"\n" - + " }\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsVersionsWireTest_testDeploy_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java index d954f74b0..3173e5643 100644 --- a/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ActionsWireTest.java @@ -75,11 +75,9 @@ public void testList() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"deployed_version\":{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\"}],\"modules\":[{}]},\"installed_integration_id\":\"installed_integration_id\",\"integration\":{\"id\":\"id\",\"catalog_id\":\"catalog_id\",\"url_slug\":\"url_slug\",\"partner_id\":\"partner_id\",\"name\":\"name\",\"description\":\"description\",\"short_description\":\"short_description\",\"logo\":\"logo\",\"feature_type\":\"unspecified\",\"terms_of_use_url\":\"terms_of_use_url\",\"privacy_policy_url\":\"privacy_policy_url\",\"public_support_link\":\"public_support_link\",\"current_release\":{\"id\":\"id\",\"trigger\":{\"id\":\"id\"},\"required_secrets\":[{}],\"required_configuration\":[{}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsWireTest_testCreate_response.json"))); CreateActionResponseContent response = client.actions() .create(CreateActionRequestContent.builder() .name("name") @@ -130,128 +128,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"deployed_version\": {\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {}\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {}\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"installed_integration_id\": \"installed_integration_id\",\n" - + " \"integration\": {\n" - + " \"id\": \"id\",\n" - + " \"catalog_id\": \"catalog_id\",\n" - + " \"url_slug\": \"url_slug\",\n" - + " \"partner_id\": \"partner_id\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"short_description\": \"short_description\",\n" - + " \"logo\": \"logo\",\n" - + " \"feature_type\": \"unspecified\",\n" - + " \"terms_of_use_url\": \"terms_of_use_url\",\n" - + " \"privacy_policy_url\": \"privacy_policy_url\",\n" - + " \"public_support_link\": \"public_support_link\",\n" - + " \"current_release\": {\n" - + " \"id\": \"id\",\n" - + " \"trigger\": {\n" - + " \"id\": \"id\"\n" - + " },\n" - + " \"required_secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"required_configuration\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"status\": \"pending\",\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"deploy\": true,\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -285,11 +163,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"deployed_version\":{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\"}],\"modules\":[{}]},\"installed_integration_id\":\"installed_integration_id\",\"integration\":{\"id\":\"id\",\"catalog_id\":\"catalog_id\",\"url_slug\":\"url_slug\",\"partner_id\":\"partner_id\",\"name\":\"name\",\"description\":\"description\",\"short_description\":\"short_description\",\"logo\":\"logo\",\"feature_type\":\"unspecified\",\"terms_of_use_url\":\"terms_of_use_url\",\"privacy_policy_url\":\"privacy_policy_url\",\"public_support_link\":\"public_support_link\",\"current_release\":{\"id\":\"id\",\"trigger\":{\"id\":\"id\"},\"required_secrets\":[{}],\"required_configuration\":[{}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsWireTest_testGet_response.json"))); GetActionResponseContent response = client.actions().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -298,128 +174,7 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"deployed_version\": {\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {}\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {}\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"installed_integration_id\": \"installed_integration_id\",\n" - + " \"integration\": {\n" - + " \"id\": \"id\",\n" - + " \"catalog_id\": \"catalog_id\",\n" - + " \"url_slug\": \"url_slug\",\n" - + " \"partner_id\": \"partner_id\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"short_description\": \"short_description\",\n" - + " \"logo\": \"logo\",\n" - + " \"feature_type\": \"unspecified\",\n" - + " \"terms_of_use_url\": \"terms_of_use_url\",\n" - + " \"privacy_policy_url\": \"privacy_policy_url\",\n" - + " \"public_support_link\": \"public_support_link\",\n" - + " \"current_release\": {\n" - + " \"id\": \"id\",\n" - + " \"trigger\": {\n" - + " \"id\": \"id\"\n" - + " },\n" - + " \"required_secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"required_configuration\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"status\": \"pending\",\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"deploy\": true,\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/ActionsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -467,11 +222,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"deployed_version\":{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\"}],\"modules\":[{}]},\"installed_integration_id\":\"installed_integration_id\",\"integration\":{\"id\":\"id\",\"catalog_id\":\"catalog_id\",\"url_slug\":\"url_slug\",\"partner_id\":\"partner_id\",\"name\":\"name\",\"description\":\"description\",\"short_description\":\"short_description\",\"logo\":\"logo\",\"feature_type\":\"unspecified\",\"terms_of_use_url\":\"terms_of_use_url\",\"privacy_policy_url\":\"privacy_policy_url\",\"public_support_link\":\"public_support_link\",\"current_release\":{\"id\":\"id\",\"trigger\":{\"id\":\"id\"},\"required_secrets\":[{}],\"required_configuration\":[{}]},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"status\":\"pending\",\"built_at\":\"2024-01-15T09:30:00Z\",\"deploy\":true,\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsWireTest_testUpdate_response.json"))); UpdateActionResponseContent response = client.actions() .update("id", UpdateActionRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -510,128 +263,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"deployed_version\": {\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {}\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {}\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"installed_integration_id\": \"installed_integration_id\",\n" - + " \"integration\": {\n" - + " \"id\": \"id\",\n" - + " \"catalog_id\": \"catalog_id\",\n" - + " \"url_slug\": \"url_slug\",\n" - + " \"partner_id\": \"partner_id\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"short_description\": \"short_description\",\n" - + " \"logo\": \"logo\",\n" - + " \"feature_type\": \"unspecified\",\n" - + " \"terms_of_use_url\": \"terms_of_use_url\",\n" - + " \"privacy_policy_url\": \"privacy_policy_url\",\n" - + " \"public_support_link\": \"public_support_link\",\n" - + " \"current_release\": {\n" - + " \"id\": \"id\",\n" - + " \"trigger\": {\n" - + " \"id\": \"id\"\n" - + " },\n" - + " \"required_secrets\": [\n" - + " {}\n" - + " ],\n" - + " \"required_configuration\": [\n" - + " {}\n" - + " ]\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"status\": \"pending\",\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"deploy\": true,\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -665,11 +298,9 @@ else if (actualResponseNode.has("kind")) @Test public void testDeploy() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"action_id\":\"action_id\",\"code\":\"code\",\"dependencies\":[{\"name\":\"name\",\"version\":\"version\",\"registry_url\":\"registry_url\"}],\"deployed\":true,\"runtime\":\"runtime\",\"secrets\":[{\"name\":\"name\",\"updated_at\":\"2024-01-15T09:30:00Z\"}],\"status\":\"pending\",\"number\":1.1,\"errors\":[{\"id\":\"id\",\"msg\":\"msg\",\"url\":\"url\"}],\"action\":{\"id\":\"id\",\"name\":\"name\",\"supported_triggers\":[{\"id\":\"id\"}],\"all_changes_deployed\":true,\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\"},\"built_at\":\"2024-01-15T09:30:00Z\",\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"supported_triggers\":[{\"id\":\"id\",\"version\":\"version\",\"status\":\"status\",\"runtimes\":[\"runtimes\"],\"default_runtime\":\"default_runtime\",\"compatible_triggers\":[{\"id\":\"id\",\"version\":\"version\"}],\"binding_policy\":\"trigger-bound\"}],\"modules\":[{\"module_id\":\"module_id\",\"module_name\":\"module_name\",\"module_version_id\":\"module_version_id\",\"module_version_number\":1}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ActionsWireTest_testDeploy_response.json"))); DeployActionResponseContent response = client.actions().deploy("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -678,77 +309,8 @@ public void testDeploy() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"action_id\": \"action_id\",\n" - + " \"code\": \"code\",\n" - + " \"dependencies\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\",\n" - + " \"registry_url\": \"registry_url\"\n" - + " }\n" - + " ],\n" - + " \"deployed\": true,\n" - + " \"runtime\": \"runtime\",\n" - + " \"secrets\": [\n" - + " {\n" - + " \"name\": \"name\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " }\n" - + " ],\n" - + " \"status\": \"pending\",\n" - + " \"number\": 1.1,\n" - + " \"errors\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"msg\": \"msg\",\n" - + " \"url\": \"url\"\n" - + " }\n" - + " ],\n" - + " \"action\": {\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ],\n" - + " \"all_changes_deployed\": true,\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\"\n" - + " },\n" - + " \"built_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"supported_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\",\n" - + " \"status\": \"status\",\n" - + " \"runtimes\": [\n" - + " \"runtimes\"\n" - + " ],\n" - + " \"default_runtime\": \"default_runtime\",\n" - + " \"compatible_triggers\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " ],\n" - + " \"binding_policy\": \"trigger-bound\"\n" - + " }\n" - + " ],\n" - + " \"modules\": [\n" - + " {\n" - + " \"module_id\": \"module_id\",\n" - + " \"module_name\": \"module_name\",\n" - + " \"module_version_id\": \"module_version_id\",\n" - + " \"module_version_number\": 1\n" - + " }\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ActionsWireTest_testDeploy_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/BrandingThemesWireTest.java b/src/test/java/com/auth0/client/mgmt/BrandingThemesWireTest.java index e77b08b0a..1ad2a8c35 100644 --- a/src/test/java/com/auth0/client/mgmt/BrandingThemesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/BrandingThemesWireTest.java @@ -57,11 +57,9 @@ public void teardown() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"borders\":{\"button_border_radius\":1.1,\"button_border_weight\":1.1,\"buttons_style\":\"pill\",\"input_border_radius\":1.1,\"input_border_weight\":1.1,\"inputs_style\":\"pill\",\"show_widget_shadow\":true,\"widget_border_weight\":1.1,\"widget_corner_radius\":1.1},\"colors\":{\"base_focus_color\":\"base_focus_color\",\"base_hover_color\":\"base_hover_color\",\"body_text\":\"body_text\",\"captcha_widget_theme\":\"auto\",\"error\":\"error\",\"header\":\"header\",\"icons\":\"icons\",\"input_background\":\"input_background\",\"input_border\":\"input_border\",\"input_filled_text\":\"input_filled_text\",\"input_labels_placeholders\":\"input_labels_placeholders\",\"links_focused_components\":\"links_focused_components\",\"primary_button\":\"primary_button\",\"primary_button_label\":\"primary_button_label\",\"read_only_background\":\"read_only_background\",\"secondary_button_border\":\"secondary_button_border\",\"secondary_button_label\":\"secondary_button_label\",\"success\":\"success\",\"widget_background\":\"widget_background\",\"widget_border\":\"widget_border\"},\"displayName\":\"displayName\",\"fonts\":{\"body_text\":{\"bold\":true,\"size\":1.1},\"buttons_text\":{\"bold\":true,\"size\":1.1},\"font_url\":\"font_url\",\"input_labels\":{\"bold\":true,\"size\":1.1},\"links\":{\"bold\":true,\"size\":1.1},\"links_style\":\"normal\",\"reference_text_size\":1.1,\"subtitle\":{\"bold\":true,\"size\":1.1},\"title\":{\"bold\":true,\"size\":1.1}},\"page_background\":{\"background_color\":\"background_color\",\"background_image_url\":\"background_image_url\",\"page_layout\":\"center\"},\"themeId\":\"themeId\",\"widget\":{\"header_text_alignment\":\"center\",\"logo_height\":1.1,\"logo_position\":\"center\",\"logo_url\":\"logo_url\",\"social_buttons_layout\":\"bottom\"}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testCreate_response.json"))); CreateBrandingThemeResponseContent response = client.branding() .themes() .create(CreateBrandingThemeRequestContent.builder() @@ -141,79 +139,8 @@ public void testCreate() throws Exception { Assertions.assertEquals("POST", request.getMethod()); // Validate request body String actualRequestBody = request.getBody().readUtf8(); - String expectedRequestBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"body_text\": \"body_text\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedRequestBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testCreate_request.json"); JsonNode actualJson = objectMapper.readTree(actualRequestBody); JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); @@ -244,85 +171,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"base_focus_color\": \"base_focus_color\",\n" - + " \"base_hover_color\": \"base_hover_color\",\n" - + " \"body_text\": \"body_text\",\n" - + " \"captcha_widget_theme\": \"auto\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"read_only_background\": \"read_only_background\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"displayName\": \"displayName\",\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"themeId\": \"themeId\",\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -356,11 +206,10 @@ else if (actualResponseNode.has("kind")) @Test public void testGetDefault() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"borders\":{\"button_border_radius\":1.1,\"button_border_weight\":1.1,\"buttons_style\":\"pill\",\"input_border_radius\":1.1,\"input_border_weight\":1.1,\"inputs_style\":\"pill\",\"show_widget_shadow\":true,\"widget_border_weight\":1.1,\"widget_corner_radius\":1.1},\"colors\":{\"base_focus_color\":\"base_focus_color\",\"base_hover_color\":\"base_hover_color\",\"body_text\":\"body_text\",\"captcha_widget_theme\":\"auto\",\"error\":\"error\",\"header\":\"header\",\"icons\":\"icons\",\"input_background\":\"input_background\",\"input_border\":\"input_border\",\"input_filled_text\":\"input_filled_text\",\"input_labels_placeholders\":\"input_labels_placeholders\",\"links_focused_components\":\"links_focused_components\",\"primary_button\":\"primary_button\",\"primary_button_label\":\"primary_button_label\",\"read_only_background\":\"read_only_background\",\"secondary_button_border\":\"secondary_button_border\",\"secondary_button_label\":\"secondary_button_label\",\"success\":\"success\",\"widget_background\":\"widget_background\",\"widget_border\":\"widget_border\"},\"displayName\":\"displayName\",\"fonts\":{\"body_text\":{\"bold\":true,\"size\":1.1},\"buttons_text\":{\"bold\":true,\"size\":1.1},\"font_url\":\"font_url\",\"input_labels\":{\"bold\":true,\"size\":1.1},\"links\":{\"bold\":true,\"size\":1.1},\"links_style\":\"normal\",\"reference_text_size\":1.1,\"subtitle\":{\"bold\":true,\"size\":1.1},\"title\":{\"bold\":true,\"size\":1.1}},\"page_background\":{\"background_color\":\"background_color\",\"background_image_url\":\"background_image_url\",\"page_layout\":\"center\"},\"themeId\":\"themeId\",\"widget\":{\"header_text_alignment\":\"center\",\"logo_height\":1.1,\"logo_position\":\"center\",\"logo_url\":\"logo_url\",\"social_buttons_layout\":\"bottom\"}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody( + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testGetDefault_response.json"))); GetBrandingDefaultThemeResponseContent response = client.branding().themes().getDefault(); RecordedRequest request = server.takeRequest(); @@ -370,85 +219,8 @@ public void testGetDefault() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"base_focus_color\": \"base_focus_color\",\n" - + " \"base_hover_color\": \"base_hover_color\",\n" - + " \"body_text\": \"body_text\",\n" - + " \"captcha_widget_theme\": \"auto\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"read_only_background\": \"read_only_background\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"displayName\": \"displayName\",\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"themeId\": \"themeId\",\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testGetDefault_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -482,11 +254,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"borders\":{\"button_border_radius\":1.1,\"button_border_weight\":1.1,\"buttons_style\":\"pill\",\"input_border_radius\":1.1,\"input_border_weight\":1.1,\"inputs_style\":\"pill\",\"show_widget_shadow\":true,\"widget_border_weight\":1.1,\"widget_corner_radius\":1.1},\"colors\":{\"base_focus_color\":\"base_focus_color\",\"base_hover_color\":\"base_hover_color\",\"body_text\":\"body_text\",\"captcha_widget_theme\":\"auto\",\"error\":\"error\",\"header\":\"header\",\"icons\":\"icons\",\"input_background\":\"input_background\",\"input_border\":\"input_border\",\"input_filled_text\":\"input_filled_text\",\"input_labels_placeholders\":\"input_labels_placeholders\",\"links_focused_components\":\"links_focused_components\",\"primary_button\":\"primary_button\",\"primary_button_label\":\"primary_button_label\",\"read_only_background\":\"read_only_background\",\"secondary_button_border\":\"secondary_button_border\",\"secondary_button_label\":\"secondary_button_label\",\"success\":\"success\",\"widget_background\":\"widget_background\",\"widget_border\":\"widget_border\"},\"displayName\":\"displayName\",\"fonts\":{\"body_text\":{\"bold\":true,\"size\":1.1},\"buttons_text\":{\"bold\":true,\"size\":1.1},\"font_url\":\"font_url\",\"input_labels\":{\"bold\":true,\"size\":1.1},\"links\":{\"bold\":true,\"size\":1.1},\"links_style\":\"normal\",\"reference_text_size\":1.1,\"subtitle\":{\"bold\":true,\"size\":1.1},\"title\":{\"bold\":true,\"size\":1.1}},\"page_background\":{\"background_color\":\"background_color\",\"background_image_url\":\"background_image_url\",\"page_layout\":\"center\"},\"themeId\":\"themeId\",\"widget\":{\"header_text_alignment\":\"center\",\"logo_height\":1.1,\"logo_position\":\"center\",\"logo_url\":\"logo_url\",\"social_buttons_layout\":\"bottom\"}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testGet_response.json"))); GetBrandingThemeResponseContent response = client.branding().themes().get("themeId"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -495,85 +265,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"base_focus_color\": \"base_focus_color\",\n" - + " \"base_hover_color\": \"base_hover_color\",\n" - + " \"body_text\": \"body_text\",\n" - + " \"captcha_widget_theme\": \"auto\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"read_only_background\": \"read_only_background\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"displayName\": \"displayName\",\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"themeId\": \"themeId\",\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -616,11 +309,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"borders\":{\"button_border_radius\":1.1,\"button_border_weight\":1.1,\"buttons_style\":\"pill\",\"input_border_radius\":1.1,\"input_border_weight\":1.1,\"inputs_style\":\"pill\",\"show_widget_shadow\":true,\"widget_border_weight\":1.1,\"widget_corner_radius\":1.1},\"colors\":{\"base_focus_color\":\"base_focus_color\",\"base_hover_color\":\"base_hover_color\",\"body_text\":\"body_text\",\"captcha_widget_theme\":\"auto\",\"error\":\"error\",\"header\":\"header\",\"icons\":\"icons\",\"input_background\":\"input_background\",\"input_border\":\"input_border\",\"input_filled_text\":\"input_filled_text\",\"input_labels_placeholders\":\"input_labels_placeholders\",\"links_focused_components\":\"links_focused_components\",\"primary_button\":\"primary_button\",\"primary_button_label\":\"primary_button_label\",\"read_only_background\":\"read_only_background\",\"secondary_button_border\":\"secondary_button_border\",\"secondary_button_label\":\"secondary_button_label\",\"success\":\"success\",\"widget_background\":\"widget_background\",\"widget_border\":\"widget_border\"},\"displayName\":\"displayName\",\"fonts\":{\"body_text\":{\"bold\":true,\"size\":1.1},\"buttons_text\":{\"bold\":true,\"size\":1.1},\"font_url\":\"font_url\",\"input_labels\":{\"bold\":true,\"size\":1.1},\"links\":{\"bold\":true,\"size\":1.1},\"links_style\":\"normal\",\"reference_text_size\":1.1,\"subtitle\":{\"bold\":true,\"size\":1.1},\"title\":{\"bold\":true,\"size\":1.1}},\"page_background\":{\"background_color\":\"background_color\",\"background_image_url\":\"background_image_url\",\"page_layout\":\"center\"},\"themeId\":\"themeId\",\"widget\":{\"header_text_alignment\":\"center\",\"logo_height\":1.1,\"logo_position\":\"center\",\"logo_url\":\"logo_url\",\"social_buttons_layout\":\"bottom\"}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testUpdate_response.json"))); UpdateBrandingThemeResponseContent response = client.branding() .themes() .update( @@ -702,79 +393,8 @@ public void testUpdate() throws Exception { Assertions.assertEquals("PATCH", request.getMethod()); // Validate request body String actualRequestBody = request.getBody().readUtf8(); - String expectedRequestBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"body_text\": \"body_text\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedRequestBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testUpdate_request.json"); JsonNode actualJson = objectMapper.readTree(actualRequestBody); JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); @@ -805,85 +425,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"borders\": {\n" - + " \"button_border_radius\": 1.1,\n" - + " \"button_border_weight\": 1.1,\n" - + " \"buttons_style\": \"pill\",\n" - + " \"input_border_radius\": 1.1,\n" - + " \"input_border_weight\": 1.1,\n" - + " \"inputs_style\": \"pill\",\n" - + " \"show_widget_shadow\": true,\n" - + " \"widget_border_weight\": 1.1,\n" - + " \"widget_corner_radius\": 1.1\n" - + " },\n" - + " \"colors\": {\n" - + " \"base_focus_color\": \"base_focus_color\",\n" - + " \"base_hover_color\": \"base_hover_color\",\n" - + " \"body_text\": \"body_text\",\n" - + " \"captcha_widget_theme\": \"auto\",\n" - + " \"error\": \"error\",\n" - + " \"header\": \"header\",\n" - + " \"icons\": \"icons\",\n" - + " \"input_background\": \"input_background\",\n" - + " \"input_border\": \"input_border\",\n" - + " \"input_filled_text\": \"input_filled_text\",\n" - + " \"input_labels_placeholders\": \"input_labels_placeholders\",\n" - + " \"links_focused_components\": \"links_focused_components\",\n" - + " \"primary_button\": \"primary_button\",\n" - + " \"primary_button_label\": \"primary_button_label\",\n" - + " \"read_only_background\": \"read_only_background\",\n" - + " \"secondary_button_border\": \"secondary_button_border\",\n" - + " \"secondary_button_label\": \"secondary_button_label\",\n" - + " \"success\": \"success\",\n" - + " \"widget_background\": \"widget_background\",\n" - + " \"widget_border\": \"widget_border\"\n" - + " },\n" - + " \"displayName\": \"displayName\",\n" - + " \"fonts\": {\n" - + " \"body_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"buttons_text\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"font_url\": \"font_url\",\n" - + " \"input_labels\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"links_style\": \"normal\",\n" - + " \"reference_text_size\": 1.1,\n" - + " \"subtitle\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " },\n" - + " \"title\": {\n" - + " \"bold\": true,\n" - + " \"size\": 1.1\n" - + " }\n" - + " },\n" - + " \"page_background\": {\n" - + " \"background_color\": \"background_color\",\n" - + " \"background_image_url\": \"background_image_url\",\n" - + " \"page_layout\": \"center\"\n" - + " },\n" - + " \"themeId\": \"themeId\",\n" - + " \"widget\": {\n" - + " \"header_text_alignment\": \"center\",\n" - + " \"logo_height\": 1.1,\n" - + " \"logo_position\": \"center\",\n" - + " \"logo_url\": \"logo_url\",\n" - + " \"social_buttons_layout\": \"bottom\"\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/BrandingThemesWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java index b3b32b587..42b269cd0 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientsWireTest.java @@ -44,11 +44,9 @@ public void teardown() throws Exception { @Test public void testList() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"clients\":[{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"grant_types\":[\"grant_types\"],\"signing_keys\":[{}],\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\"},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testList_response.json"))); SyncPagingIterable response = client.clients() .list(ListClientsRequestParameters.builder() .fields(OptionalNullable.of("fields")) @@ -73,11 +71,9 @@ public void testList() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_transfer\":{\"can_create_session_transfer_token\":true,\"enforce_cascade_revocation\":true,\"allowed_authentication_methods\":[\"cookie\"],\"enforce_device_binding\":\"ip\",\"allow_refresh_token\":true,\"enforce_online_refresh_tokens\":true},\"oidc_logout\":{\"backchannel_logout_urls\":[\"backchannel_logout_urls\"],\"backchannel_logout_initiators\":{\"mode\":\"custom\",\"selected_initiators\":[\"rp-logout\"]},\"backchannel_logout_session_metadata\":{\"include\":true}},\"grant_types\":[\"grant_types\"],\"jwt_configuration\":{\"lifetime_in_seconds\":1,\"secret_encoded\":true,\"scopes\":{\"key\":\"value\"},\"alg\":\"HS256\"},\"signing_keys\":[{\"pkcs7\":\"pkcs7\",\"cert\":\"cert\",\"subject\":\"subject\"}],\"encryption_key\":{\"pub\":\"pub\",\"cert\":\"cert\",\"subject\":\"subject\"},\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"addons\":{\"aws\":{\"principal\":\"principal\",\"role\":\"role\",\"lifetime_in_seconds\":1},\"azure_blob\":{\"accountName\":\"accountName\",\"storageAccessKey\":\"storageAccessKey\",\"containerName\":\"containerName\",\"blobName\":\"blobName\",\"expiration\":1,\"signedIdentifier\":\"signedIdentifier\",\"blob_read\":true,\"blob_write\":true,\"blob_delete\":true,\"container_read\":true,\"container_write\":true,\"container_delete\":true,\"container_list\":true},\"azure_sb\":{\"namespace\":\"namespace\",\"sasKeyName\":\"sasKeyName\",\"sasKey\":\"sasKey\",\"entityPath\":\"entityPath\",\"expiration\":1},\"rms\":{\"url\":\"url\"},\"mscrm\":{\"url\":\"url\"},\"slack\":{\"team\":\"team\"},\"sentry\":{\"org_slug\":\"org_slug\",\"base_url\":\"base_url\"},\"box\":{\"key\":\"value\"},\"cloudbees\":{\"key\":\"value\"},\"concur\":{\"key\":\"value\"},\"dropbox\":{\"key\":\"value\"},\"echosign\":{\"domain\":\"domain\"},\"egnyte\":{\"domain\":\"domain\"},\"firebase\":{\"secret\":\"secret\",\"private_key_id\":\"private_key_id\",\"private_key\":\"private_key\",\"client_email\":\"client_email\",\"lifetime_in_seconds\":1},\"newrelic\":{\"account\":\"account\"},\"office365\":{\"domain\":\"domain\",\"connection\":\"connection\"},\"salesforce\":{\"entity_id\":\"entity_id\"},\"salesforce_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"salesforce_sandbox_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"samlp\":{\"mappings\":{\"key\":\"value\"},\"audience\":\"audience\",\"recipient\":\"recipient\",\"createUpnClaim\":true,\"mapUnknownClaimsAsIs\":true,\"passthroughClaimsWithNoMapping\":true,\"mapIdentities\":true,\"signatureAlgorithm\":\"signatureAlgorithm\",\"digestAlgorithm\":\"digestAlgorithm\",\"issuer\":\"issuer\",\"destination\":\"destination\",\"lifetimeInSeconds\":1,\"signResponse\":true,\"nameIdentifierFormat\":\"nameIdentifierFormat\",\"nameIdentifierProbes\":[\"nameIdentifierProbes\"],\"authnContextClassRef\":\"authnContextClassRef\"},\"layer\":{\"providerId\":\"providerId\",\"keyId\":\"keyId\",\"privateKey\":\"privateKey\",\"principal\":\"principal\",\"expiration\":1},\"sap_api\":{\"clientid\":\"clientid\",\"usernameAttribute\":\"usernameAttribute\",\"tokenEndpointUrl\":\"tokenEndpointUrl\",\"scope\":\"scope\",\"servicePassword\":\"servicePassword\",\"nameIdentifierFormat\":\"nameIdentifierFormat\"},\"sharepoint\":{\"url\":\"url\",\"external_url\":[\"external_url\"]},\"springcm\":{\"acsurl\":\"acsurl\"},\"wams\":{\"masterkey\":\"masterkey\"},\"wsfed\":{\"key\":\"value\"},\"zendesk\":{\"accountName\":\"accountName\"},\"zoom\":{\"account\":\"account\"},\"sso_integration\":{\"name\":\"name\",\"version\":\"version\"}},\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"mobile\":{\"android\":{\"app_package_name\":\"app_package_name\",\"sha256_cert_fingerprints\":[\"sha256_cert_fingerprints\"]},\"ios\":{\"team_id\":\"team_id\",\"app_bundle_identifier\":\"app_bundle_identifier\"}},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\",\"leeway\":1,\"token_lifetime\":1,\"infinite_token_lifetime\":true,\"idle_token_lifetime\":1,\"infinite_idle_token_lifetime\":true,\"policies\":[{\"audience\":\"audience\",\"scope\":[\"scope\"]}]},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"id\":\"id\"}]},\"tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]},\"self_signed_tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]}},\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"signed_request_object\":{\"required\":true,\"credentials\":[{\"id\":\"id\"}]},\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"token_exchange\":{\"allow_any_profile_of_type\":[\"custom_authentication\"]},\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"linked_clients\":[{\"client_id\":\"client_id\"}],\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\",\"oin_submission_id\":\"oin_submission_id\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testCreate_response.json"))); CreateClientResponseContent response = client.clients() .create(CreateClientRequestContent.builder().name("name").build()); RecordedRequest request = server.takeRequest(); @@ -116,356 +112,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"client_id\": \"client_id\",\n" - + " \"tenant\": \"tenant\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"global\": true,\n" - + " \"client_secret\": \"client_secret\",\n" - + " \"app_type\": \"native\",\n" - + " \"logo_uri\": \"logo_uri\",\n" - + " \"is_first_party\": true,\n" - + " \"oidc_conformant\": true,\n" - + " \"callbacks\": [\n" - + " \"callbacks\"\n" - + " ],\n" - + " \"allowed_origins\": [\n" - + " \"allowed_origins\"\n" - + " ],\n" - + " \"web_origins\": [\n" - + " \"web_origins\"\n" - + " ],\n" - + " \"client_aliases\": [\n" - + " \"client_aliases\"\n" - + " ],\n" - + " \"allowed_clients\": [\n" - + " \"allowed_clients\"\n" - + " ],\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_transfer\": {\n" - + " \"can_create_session_transfer_token\": true,\n" - + " \"enforce_cascade_revocation\": true,\n" - + " \"allowed_authentication_methods\": [\n" - + " \"cookie\"\n" - + " ],\n" - + " \"enforce_device_binding\": \"ip\",\n" - + " \"allow_refresh_token\": true,\n" - + " \"enforce_online_refresh_tokens\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"backchannel_logout_urls\": [\n" - + " \"backchannel_logout_urls\"\n" - + " ],\n" - + " \"backchannel_logout_initiators\": {\n" - + " \"mode\": \"custom\",\n" - + " \"selected_initiators\": [\n" - + " \"rp-logout\"\n" - + " ]\n" - + " },\n" - + " \"backchannel_logout_session_metadata\": {\n" - + " \"include\": true\n" - + " }\n" - + " },\n" - + " \"grant_types\": [\n" - + " \"grant_types\"\n" - + " ],\n" - + " \"jwt_configuration\": {\n" - + " \"lifetime_in_seconds\": 1,\n" - + " \"secret_encoded\": true,\n" - + " \"scopes\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"alg\": \"HS256\"\n" - + " },\n" - + " \"signing_keys\": [\n" - + " {\n" - + " \"pkcs7\": \"pkcs7\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " }\n" - + " ],\n" - + " \"encryption_key\": {\n" - + " \"pub\": \"pub\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " },\n" - + " \"sso\": true,\n" - + " \"sso_disabled\": true,\n" - + " \"cross_origin_authentication\": true,\n" - + " \"cross_origin_loc\": \"cross_origin_loc\",\n" - + " \"custom_login_page_on\": true,\n" - + " \"custom_login_page\": \"custom_login_page\",\n" - + " \"custom_login_page_preview\": \"custom_login_page_preview\",\n" - + " \"form_template\": \"form_template\",\n" - + " \"addons\": {\n" - + " \"aws\": {\n" - + " \"principal\": \"principal\",\n" - + " \"role\": \"role\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"azure_blob\": {\n" - + " \"accountName\": \"accountName\",\n" - + " \"storageAccessKey\": \"storageAccessKey\",\n" - + " \"containerName\": \"containerName\",\n" - + " \"blobName\": \"blobName\",\n" - + " \"expiration\": 1,\n" - + " \"signedIdentifier\": \"signedIdentifier\",\n" - + " \"blob_read\": true,\n" - + " \"blob_write\": true,\n" - + " \"blob_delete\": true,\n" - + " \"container_read\": true,\n" - + " \"container_write\": true,\n" - + " \"container_delete\": true,\n" - + " \"container_list\": true\n" - + " },\n" - + " \"azure_sb\": {\n" - + " \"namespace\": \"namespace\",\n" - + " \"sasKeyName\": \"sasKeyName\",\n" - + " \"sasKey\": \"sasKey\",\n" - + " \"entityPath\": \"entityPath\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"rms\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"mscrm\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"slack\": {\n" - + " \"team\": \"team\"\n" - + " },\n" - + " \"sentry\": {\n" - + " \"org_slug\": \"org_slug\",\n" - + " \"base_url\": \"base_url\"\n" - + " },\n" - + " \"box\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"cloudbees\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"concur\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"dropbox\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"echosign\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"egnyte\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"firebase\": {\n" - + " \"secret\": \"secret\",\n" - + " \"private_key_id\": \"private_key_id\",\n" - + " \"private_key\": \"private_key\",\n" - + " \"client_email\": \"client_email\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"newrelic\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"office365\": {\n" - + " \"domain\": \"domain\",\n" - + " \"connection\": \"connection\"\n" - + " },\n" - + " \"salesforce\": {\n" - + " \"entity_id\": \"entity_id\"\n" - + " },\n" - + " \"salesforce_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"salesforce_sandbox_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"samlp\": {\n" - + " \"mappings\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"audience\": \"audience\",\n" - + " \"recipient\": \"recipient\",\n" - + " \"createUpnClaim\": true,\n" - + " \"mapUnknownClaimsAsIs\": true,\n" - + " \"passthroughClaimsWithNoMapping\": true,\n" - + " \"mapIdentities\": true,\n" - + " \"signatureAlgorithm\": \"signatureAlgorithm\",\n" - + " \"digestAlgorithm\": \"digestAlgorithm\",\n" - + " \"issuer\": \"issuer\",\n" - + " \"destination\": \"destination\",\n" - + " \"lifetimeInSeconds\": 1,\n" - + " \"signResponse\": true,\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n" - + " \"nameIdentifierProbes\": [\n" - + " \"nameIdentifierProbes\"\n" - + " ],\n" - + " \"authnContextClassRef\": \"authnContextClassRef\"\n" - + " },\n" - + " \"layer\": {\n" - + " \"providerId\": \"providerId\",\n" - + " \"keyId\": \"keyId\",\n" - + " \"privateKey\": \"privateKey\",\n" - + " \"principal\": \"principal\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"sap_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"usernameAttribute\": \"usernameAttribute\",\n" - + " \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n" - + " \"scope\": \"scope\",\n" - + " \"servicePassword\": \"servicePassword\",\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n" - + " },\n" - + " \"sharepoint\": {\n" - + " \"url\": \"url\",\n" - + " \"external_url\": [\n" - + " \"external_url\"\n" - + " ]\n" - + " },\n" - + " \"springcm\": {\n" - + " \"acsurl\": \"acsurl\"\n" - + " },\n" - + " \"wams\": {\n" - + " \"masterkey\": \"masterkey\"\n" - + " },\n" - + " \"wsfed\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"zendesk\": {\n" - + " \"accountName\": \"accountName\"\n" - + " },\n" - + " \"zoom\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"sso_integration\": {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " },\n" - + " \"token_endpoint_auth_method\": \"none\",\n" - + " \"is_token_endpoint_ip_header_trusted\": true,\n" - + " \"client_metadata\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"mobile\": {\n" - + " \"android\": {\n" - + " \"app_package_name\": \"app_package_name\",\n" - + " \"sha256_cert_fingerprints\": [\n" - + " \"sha256_cert_fingerprints\"\n" - + " ]\n" - + " },\n" - + " \"ios\": {\n" - + " \"team_id\": \"team_id\",\n" - + " \"app_bundle_identifier\": \"app_bundle_identifier\"\n" - + " }\n" - + " },\n" - + " \"initiate_login_uri\": \"initiate_login_uri\",\n" - + " \"refresh_token\": {\n" - + " \"rotation_type\": \"rotating\",\n" - + " \"expiration_type\": \"expiring\",\n" - + " \"leeway\": 1,\n" - + " \"token_lifetime\": 1,\n" - + " \"infinite_token_lifetime\": true,\n" - + " \"idle_token_lifetime\": 1,\n" - + " \"infinite_idle_token_lifetime\": true,\n" - + " \"policies\": [\n" - + " {\n" - + " \"audience\": \"audience\",\n" - + " \"scope\": [\n" - + " \"scope\"\n" - + " ]\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"default_organization\": {\n" - + " \"organization_id\": \"organization_id\",\n" - + " \"flows\": [\n" - + " \"client_credentials\"\n" - + " ]\n" - + " },\n" - + " \"organization_usage\": \"deny\",\n" - + " \"organization_require_behavior\": \"no_prompt\",\n" - + " \"organization_discovery_methods\": [\n" - + " \"email\"\n" - + " ],\n" - + " \"client_authentication_methods\": {\n" - + " \"private_key_jwt\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"self_signed_tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " }\n" - + " },\n" - + " \"require_pushed_authorization_requests\": true,\n" - + " \"require_proof_of_possession\": true,\n" - + " \"signed_request_object\": {\n" - + " \"required\": true,\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"compliance_level\": \"none\",\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"token_exchange\": {\n" - + " \"allow_any_profile_of_type\": [\n" - + " \"custom_authentication\"\n" - + " ]\n" - + " },\n" - + " \"par_request_expiry\": 1,\n" - + " \"token_quota\": {\n" - + " \"client_credentials\": {\n" - + " \"enforce\": true,\n" - + " \"per_day\": 1,\n" - + " \"per_hour\": 1\n" - + " }\n" - + " },\n" - + " \"express_configuration\": {\n" - + " \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n" - + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" - + " \"connection_profile_id\": \"connection_profile_id\",\n" - + " \"enable_client\": true,\n" - + " \"enable_organization\": true,\n" - + " \"linked_clients\": [\n" - + " {\n" - + " \"client_id\": \"client_id\"\n" - + " }\n" - + " ],\n" - + " \"okta_oin_client_id\": \"okta_oin_client_id\",\n" - + " \"admin_login_domain\": \"admin_login_domain\",\n" - + " \"oin_submission_id\": \"oin_submission_id\"\n" - + " },\n" - + " \"resource_server_identifier\": \"resource_server_identifier\",\n" - + " \"async_approval_notification_channels\": [\n" - + " \"guardian-push\"\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ClientsWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -499,11 +147,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_transfer\":{\"can_create_session_transfer_token\":true,\"enforce_cascade_revocation\":true,\"allowed_authentication_methods\":[\"cookie\"],\"enforce_device_binding\":\"ip\",\"allow_refresh_token\":true,\"enforce_online_refresh_tokens\":true},\"oidc_logout\":{\"backchannel_logout_urls\":[\"backchannel_logout_urls\"],\"backchannel_logout_initiators\":{\"mode\":\"custom\",\"selected_initiators\":[\"rp-logout\"]},\"backchannel_logout_session_metadata\":{\"include\":true}},\"grant_types\":[\"grant_types\"],\"jwt_configuration\":{\"lifetime_in_seconds\":1,\"secret_encoded\":true,\"scopes\":{\"key\":\"value\"},\"alg\":\"HS256\"},\"signing_keys\":[{\"pkcs7\":\"pkcs7\",\"cert\":\"cert\",\"subject\":\"subject\"}],\"encryption_key\":{\"pub\":\"pub\",\"cert\":\"cert\",\"subject\":\"subject\"},\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"addons\":{\"aws\":{\"principal\":\"principal\",\"role\":\"role\",\"lifetime_in_seconds\":1},\"azure_blob\":{\"accountName\":\"accountName\",\"storageAccessKey\":\"storageAccessKey\",\"containerName\":\"containerName\",\"blobName\":\"blobName\",\"expiration\":1,\"signedIdentifier\":\"signedIdentifier\",\"blob_read\":true,\"blob_write\":true,\"blob_delete\":true,\"container_read\":true,\"container_write\":true,\"container_delete\":true,\"container_list\":true},\"azure_sb\":{\"namespace\":\"namespace\",\"sasKeyName\":\"sasKeyName\",\"sasKey\":\"sasKey\",\"entityPath\":\"entityPath\",\"expiration\":1},\"rms\":{\"url\":\"url\"},\"mscrm\":{\"url\":\"url\"},\"slack\":{\"team\":\"team\"},\"sentry\":{\"org_slug\":\"org_slug\",\"base_url\":\"base_url\"},\"box\":{\"key\":\"value\"},\"cloudbees\":{\"key\":\"value\"},\"concur\":{\"key\":\"value\"},\"dropbox\":{\"key\":\"value\"},\"echosign\":{\"domain\":\"domain\"},\"egnyte\":{\"domain\":\"domain\"},\"firebase\":{\"secret\":\"secret\",\"private_key_id\":\"private_key_id\",\"private_key\":\"private_key\",\"client_email\":\"client_email\",\"lifetime_in_seconds\":1},\"newrelic\":{\"account\":\"account\"},\"office365\":{\"domain\":\"domain\",\"connection\":\"connection\"},\"salesforce\":{\"entity_id\":\"entity_id\"},\"salesforce_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"salesforce_sandbox_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"samlp\":{\"mappings\":{\"key\":\"value\"},\"audience\":\"audience\",\"recipient\":\"recipient\",\"createUpnClaim\":true,\"mapUnknownClaimsAsIs\":true,\"passthroughClaimsWithNoMapping\":true,\"mapIdentities\":true,\"signatureAlgorithm\":\"signatureAlgorithm\",\"digestAlgorithm\":\"digestAlgorithm\",\"issuer\":\"issuer\",\"destination\":\"destination\",\"lifetimeInSeconds\":1,\"signResponse\":true,\"nameIdentifierFormat\":\"nameIdentifierFormat\",\"nameIdentifierProbes\":[\"nameIdentifierProbes\"],\"authnContextClassRef\":\"authnContextClassRef\"},\"layer\":{\"providerId\":\"providerId\",\"keyId\":\"keyId\",\"privateKey\":\"privateKey\",\"principal\":\"principal\",\"expiration\":1},\"sap_api\":{\"clientid\":\"clientid\",\"usernameAttribute\":\"usernameAttribute\",\"tokenEndpointUrl\":\"tokenEndpointUrl\",\"scope\":\"scope\",\"servicePassword\":\"servicePassword\",\"nameIdentifierFormat\":\"nameIdentifierFormat\"},\"sharepoint\":{\"url\":\"url\",\"external_url\":[\"external_url\"]},\"springcm\":{\"acsurl\":\"acsurl\"},\"wams\":{\"masterkey\":\"masterkey\"},\"wsfed\":{\"key\":\"value\"},\"zendesk\":{\"accountName\":\"accountName\"},\"zoom\":{\"account\":\"account\"},\"sso_integration\":{\"name\":\"name\",\"version\":\"version\"}},\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"mobile\":{\"android\":{\"app_package_name\":\"app_package_name\",\"sha256_cert_fingerprints\":[\"sha256_cert_fingerprints\"]},\"ios\":{\"team_id\":\"team_id\",\"app_bundle_identifier\":\"app_bundle_identifier\"}},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\",\"leeway\":1,\"token_lifetime\":1,\"infinite_token_lifetime\":true,\"idle_token_lifetime\":1,\"infinite_idle_token_lifetime\":true,\"policies\":[{\"audience\":\"audience\",\"scope\":[\"scope\"]}]},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"id\":\"id\"}]},\"tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]},\"self_signed_tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]}},\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"signed_request_object\":{\"required\":true,\"credentials\":[{\"id\":\"id\"}]},\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"token_exchange\":{\"allow_any_profile_of_type\":[\"custom_authentication\"]},\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"linked_clients\":[{\"client_id\":\"client_id\"}],\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\",\"oin_submission_id\":\"oin_submission_id\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testGet_response.json"))); GetClientResponseContent response = client.clients() .get( "id", @@ -518,356 +164,7 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"client_id\": \"client_id\",\n" - + " \"tenant\": \"tenant\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"global\": true,\n" - + " \"client_secret\": \"client_secret\",\n" - + " \"app_type\": \"native\",\n" - + " \"logo_uri\": \"logo_uri\",\n" - + " \"is_first_party\": true,\n" - + " \"oidc_conformant\": true,\n" - + " \"callbacks\": [\n" - + " \"callbacks\"\n" - + " ],\n" - + " \"allowed_origins\": [\n" - + " \"allowed_origins\"\n" - + " ],\n" - + " \"web_origins\": [\n" - + " \"web_origins\"\n" - + " ],\n" - + " \"client_aliases\": [\n" - + " \"client_aliases\"\n" - + " ],\n" - + " \"allowed_clients\": [\n" - + " \"allowed_clients\"\n" - + " ],\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_transfer\": {\n" - + " \"can_create_session_transfer_token\": true,\n" - + " \"enforce_cascade_revocation\": true,\n" - + " \"allowed_authentication_methods\": [\n" - + " \"cookie\"\n" - + " ],\n" - + " \"enforce_device_binding\": \"ip\",\n" - + " \"allow_refresh_token\": true,\n" - + " \"enforce_online_refresh_tokens\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"backchannel_logout_urls\": [\n" - + " \"backchannel_logout_urls\"\n" - + " ],\n" - + " \"backchannel_logout_initiators\": {\n" - + " \"mode\": \"custom\",\n" - + " \"selected_initiators\": [\n" - + " \"rp-logout\"\n" - + " ]\n" - + " },\n" - + " \"backchannel_logout_session_metadata\": {\n" - + " \"include\": true\n" - + " }\n" - + " },\n" - + " \"grant_types\": [\n" - + " \"grant_types\"\n" - + " ],\n" - + " \"jwt_configuration\": {\n" - + " \"lifetime_in_seconds\": 1,\n" - + " \"secret_encoded\": true,\n" - + " \"scopes\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"alg\": \"HS256\"\n" - + " },\n" - + " \"signing_keys\": [\n" - + " {\n" - + " \"pkcs7\": \"pkcs7\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " }\n" - + " ],\n" - + " \"encryption_key\": {\n" - + " \"pub\": \"pub\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " },\n" - + " \"sso\": true,\n" - + " \"sso_disabled\": true,\n" - + " \"cross_origin_authentication\": true,\n" - + " \"cross_origin_loc\": \"cross_origin_loc\",\n" - + " \"custom_login_page_on\": true,\n" - + " \"custom_login_page\": \"custom_login_page\",\n" - + " \"custom_login_page_preview\": \"custom_login_page_preview\",\n" - + " \"form_template\": \"form_template\",\n" - + " \"addons\": {\n" - + " \"aws\": {\n" - + " \"principal\": \"principal\",\n" - + " \"role\": \"role\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"azure_blob\": {\n" - + " \"accountName\": \"accountName\",\n" - + " \"storageAccessKey\": \"storageAccessKey\",\n" - + " \"containerName\": \"containerName\",\n" - + " \"blobName\": \"blobName\",\n" - + " \"expiration\": 1,\n" - + " \"signedIdentifier\": \"signedIdentifier\",\n" - + " \"blob_read\": true,\n" - + " \"blob_write\": true,\n" - + " \"blob_delete\": true,\n" - + " \"container_read\": true,\n" - + " \"container_write\": true,\n" - + " \"container_delete\": true,\n" - + " \"container_list\": true\n" - + " },\n" - + " \"azure_sb\": {\n" - + " \"namespace\": \"namespace\",\n" - + " \"sasKeyName\": \"sasKeyName\",\n" - + " \"sasKey\": \"sasKey\",\n" - + " \"entityPath\": \"entityPath\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"rms\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"mscrm\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"slack\": {\n" - + " \"team\": \"team\"\n" - + " },\n" - + " \"sentry\": {\n" - + " \"org_slug\": \"org_slug\",\n" - + " \"base_url\": \"base_url\"\n" - + " },\n" - + " \"box\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"cloudbees\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"concur\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"dropbox\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"echosign\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"egnyte\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"firebase\": {\n" - + " \"secret\": \"secret\",\n" - + " \"private_key_id\": \"private_key_id\",\n" - + " \"private_key\": \"private_key\",\n" - + " \"client_email\": \"client_email\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"newrelic\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"office365\": {\n" - + " \"domain\": \"domain\",\n" - + " \"connection\": \"connection\"\n" - + " },\n" - + " \"salesforce\": {\n" - + " \"entity_id\": \"entity_id\"\n" - + " },\n" - + " \"salesforce_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"salesforce_sandbox_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"samlp\": {\n" - + " \"mappings\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"audience\": \"audience\",\n" - + " \"recipient\": \"recipient\",\n" - + " \"createUpnClaim\": true,\n" - + " \"mapUnknownClaimsAsIs\": true,\n" - + " \"passthroughClaimsWithNoMapping\": true,\n" - + " \"mapIdentities\": true,\n" - + " \"signatureAlgorithm\": \"signatureAlgorithm\",\n" - + " \"digestAlgorithm\": \"digestAlgorithm\",\n" - + " \"issuer\": \"issuer\",\n" - + " \"destination\": \"destination\",\n" - + " \"lifetimeInSeconds\": 1,\n" - + " \"signResponse\": true,\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n" - + " \"nameIdentifierProbes\": [\n" - + " \"nameIdentifierProbes\"\n" - + " ],\n" - + " \"authnContextClassRef\": \"authnContextClassRef\"\n" - + " },\n" - + " \"layer\": {\n" - + " \"providerId\": \"providerId\",\n" - + " \"keyId\": \"keyId\",\n" - + " \"privateKey\": \"privateKey\",\n" - + " \"principal\": \"principal\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"sap_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"usernameAttribute\": \"usernameAttribute\",\n" - + " \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n" - + " \"scope\": \"scope\",\n" - + " \"servicePassword\": \"servicePassword\",\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n" - + " },\n" - + " \"sharepoint\": {\n" - + " \"url\": \"url\",\n" - + " \"external_url\": [\n" - + " \"external_url\"\n" - + " ]\n" - + " },\n" - + " \"springcm\": {\n" - + " \"acsurl\": \"acsurl\"\n" - + " },\n" - + " \"wams\": {\n" - + " \"masterkey\": \"masterkey\"\n" - + " },\n" - + " \"wsfed\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"zendesk\": {\n" - + " \"accountName\": \"accountName\"\n" - + " },\n" - + " \"zoom\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"sso_integration\": {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " },\n" - + " \"token_endpoint_auth_method\": \"none\",\n" - + " \"is_token_endpoint_ip_header_trusted\": true,\n" - + " \"client_metadata\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"mobile\": {\n" - + " \"android\": {\n" - + " \"app_package_name\": \"app_package_name\",\n" - + " \"sha256_cert_fingerprints\": [\n" - + " \"sha256_cert_fingerprints\"\n" - + " ]\n" - + " },\n" - + " \"ios\": {\n" - + " \"team_id\": \"team_id\",\n" - + " \"app_bundle_identifier\": \"app_bundle_identifier\"\n" - + " }\n" - + " },\n" - + " \"initiate_login_uri\": \"initiate_login_uri\",\n" - + " \"refresh_token\": {\n" - + " \"rotation_type\": \"rotating\",\n" - + " \"expiration_type\": \"expiring\",\n" - + " \"leeway\": 1,\n" - + " \"token_lifetime\": 1,\n" - + " \"infinite_token_lifetime\": true,\n" - + " \"idle_token_lifetime\": 1,\n" - + " \"infinite_idle_token_lifetime\": true,\n" - + " \"policies\": [\n" - + " {\n" - + " \"audience\": \"audience\",\n" - + " \"scope\": [\n" - + " \"scope\"\n" - + " ]\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"default_organization\": {\n" - + " \"organization_id\": \"organization_id\",\n" - + " \"flows\": [\n" - + " \"client_credentials\"\n" - + " ]\n" - + " },\n" - + " \"organization_usage\": \"deny\",\n" - + " \"organization_require_behavior\": \"no_prompt\",\n" - + " \"organization_discovery_methods\": [\n" - + " \"email\"\n" - + " ],\n" - + " \"client_authentication_methods\": {\n" - + " \"private_key_jwt\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"self_signed_tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " }\n" - + " },\n" - + " \"require_pushed_authorization_requests\": true,\n" - + " \"require_proof_of_possession\": true,\n" - + " \"signed_request_object\": {\n" - + " \"required\": true,\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"compliance_level\": \"none\",\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"token_exchange\": {\n" - + " \"allow_any_profile_of_type\": [\n" - + " \"custom_authentication\"\n" - + " ]\n" - + " },\n" - + " \"par_request_expiry\": 1,\n" - + " \"token_quota\": {\n" - + " \"client_credentials\": {\n" - + " \"enforce\": true,\n" - + " \"per_day\": 1,\n" - + " \"per_hour\": 1\n" - + " }\n" - + " },\n" - + " \"express_configuration\": {\n" - + " \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n" - + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" - + " \"connection_profile_id\": \"connection_profile_id\",\n" - + " \"enable_client\": true,\n" - + " \"enable_organization\": true,\n" - + " \"linked_clients\": [\n" - + " {\n" - + " \"client_id\": \"client_id\"\n" - + " }\n" - + " ],\n" - + " \"okta_oin_client_id\": \"okta_oin_client_id\",\n" - + " \"admin_login_domain\": \"admin_login_domain\",\n" - + " \"oin_submission_id\": \"oin_submission_id\"\n" - + " },\n" - + " \"resource_server_identifier\": \"resource_server_identifier\",\n" - + " \"async_approval_notification_channels\": [\n" - + " \"guardian-push\"\n" - + " ]\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/ClientsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -910,11 +207,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_transfer\":{\"can_create_session_transfer_token\":true,\"enforce_cascade_revocation\":true,\"allowed_authentication_methods\":[\"cookie\"],\"enforce_device_binding\":\"ip\",\"allow_refresh_token\":true,\"enforce_online_refresh_tokens\":true},\"oidc_logout\":{\"backchannel_logout_urls\":[\"backchannel_logout_urls\"],\"backchannel_logout_initiators\":{\"mode\":\"custom\",\"selected_initiators\":[\"rp-logout\"]},\"backchannel_logout_session_metadata\":{\"include\":true}},\"grant_types\":[\"grant_types\"],\"jwt_configuration\":{\"lifetime_in_seconds\":1,\"secret_encoded\":true,\"scopes\":{\"key\":\"value\"},\"alg\":\"HS256\"},\"signing_keys\":[{\"pkcs7\":\"pkcs7\",\"cert\":\"cert\",\"subject\":\"subject\"}],\"encryption_key\":{\"pub\":\"pub\",\"cert\":\"cert\",\"subject\":\"subject\"},\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"addons\":{\"aws\":{\"principal\":\"principal\",\"role\":\"role\",\"lifetime_in_seconds\":1},\"azure_blob\":{\"accountName\":\"accountName\",\"storageAccessKey\":\"storageAccessKey\",\"containerName\":\"containerName\",\"blobName\":\"blobName\",\"expiration\":1,\"signedIdentifier\":\"signedIdentifier\",\"blob_read\":true,\"blob_write\":true,\"blob_delete\":true,\"container_read\":true,\"container_write\":true,\"container_delete\":true,\"container_list\":true},\"azure_sb\":{\"namespace\":\"namespace\",\"sasKeyName\":\"sasKeyName\",\"sasKey\":\"sasKey\",\"entityPath\":\"entityPath\",\"expiration\":1},\"rms\":{\"url\":\"url\"},\"mscrm\":{\"url\":\"url\"},\"slack\":{\"team\":\"team\"},\"sentry\":{\"org_slug\":\"org_slug\",\"base_url\":\"base_url\"},\"box\":{\"key\":\"value\"},\"cloudbees\":{\"key\":\"value\"},\"concur\":{\"key\":\"value\"},\"dropbox\":{\"key\":\"value\"},\"echosign\":{\"domain\":\"domain\"},\"egnyte\":{\"domain\":\"domain\"},\"firebase\":{\"secret\":\"secret\",\"private_key_id\":\"private_key_id\",\"private_key\":\"private_key\",\"client_email\":\"client_email\",\"lifetime_in_seconds\":1},\"newrelic\":{\"account\":\"account\"},\"office365\":{\"domain\":\"domain\",\"connection\":\"connection\"},\"salesforce\":{\"entity_id\":\"entity_id\"},\"salesforce_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"salesforce_sandbox_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"samlp\":{\"mappings\":{\"key\":\"value\"},\"audience\":\"audience\",\"recipient\":\"recipient\",\"createUpnClaim\":true,\"mapUnknownClaimsAsIs\":true,\"passthroughClaimsWithNoMapping\":true,\"mapIdentities\":true,\"signatureAlgorithm\":\"signatureAlgorithm\",\"digestAlgorithm\":\"digestAlgorithm\",\"issuer\":\"issuer\",\"destination\":\"destination\",\"lifetimeInSeconds\":1,\"signResponse\":true,\"nameIdentifierFormat\":\"nameIdentifierFormat\",\"nameIdentifierProbes\":[\"nameIdentifierProbes\"],\"authnContextClassRef\":\"authnContextClassRef\"},\"layer\":{\"providerId\":\"providerId\",\"keyId\":\"keyId\",\"privateKey\":\"privateKey\",\"principal\":\"principal\",\"expiration\":1},\"sap_api\":{\"clientid\":\"clientid\",\"usernameAttribute\":\"usernameAttribute\",\"tokenEndpointUrl\":\"tokenEndpointUrl\",\"scope\":\"scope\",\"servicePassword\":\"servicePassword\",\"nameIdentifierFormat\":\"nameIdentifierFormat\"},\"sharepoint\":{\"url\":\"url\",\"external_url\":[\"external_url\"]},\"springcm\":{\"acsurl\":\"acsurl\"},\"wams\":{\"masterkey\":\"masterkey\"},\"wsfed\":{\"key\":\"value\"},\"zendesk\":{\"accountName\":\"accountName\"},\"zoom\":{\"account\":\"account\"},\"sso_integration\":{\"name\":\"name\",\"version\":\"version\"}},\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"mobile\":{\"android\":{\"app_package_name\":\"app_package_name\",\"sha256_cert_fingerprints\":[\"sha256_cert_fingerprints\"]},\"ios\":{\"team_id\":\"team_id\",\"app_bundle_identifier\":\"app_bundle_identifier\"}},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\",\"leeway\":1,\"token_lifetime\":1,\"infinite_token_lifetime\":true,\"idle_token_lifetime\":1,\"infinite_idle_token_lifetime\":true,\"policies\":[{\"audience\":\"audience\",\"scope\":[\"scope\"]}]},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"id\":\"id\"}]},\"tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]},\"self_signed_tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]}},\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"signed_request_object\":{\"required\":true,\"credentials\":[{\"id\":\"id\"}]},\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"token_exchange\":{\"allow_any_profile_of_type\":[\"custom_authentication\"]},\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"linked_clients\":[{\"client_id\":\"client_id\"}],\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\",\"oin_submission_id\":\"oin_submission_id\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testUpdate_response.json"))); UpdateClientResponseContent response = client.clients() .update("id", UpdateClientRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -953,356 +248,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"client_id\": \"client_id\",\n" - + " \"tenant\": \"tenant\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"global\": true,\n" - + " \"client_secret\": \"client_secret\",\n" - + " \"app_type\": \"native\",\n" - + " \"logo_uri\": \"logo_uri\",\n" - + " \"is_first_party\": true,\n" - + " \"oidc_conformant\": true,\n" - + " \"callbacks\": [\n" - + " \"callbacks\"\n" - + " ],\n" - + " \"allowed_origins\": [\n" - + " \"allowed_origins\"\n" - + " ],\n" - + " \"web_origins\": [\n" - + " \"web_origins\"\n" - + " ],\n" - + " \"client_aliases\": [\n" - + " \"client_aliases\"\n" - + " ],\n" - + " \"allowed_clients\": [\n" - + " \"allowed_clients\"\n" - + " ],\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_transfer\": {\n" - + " \"can_create_session_transfer_token\": true,\n" - + " \"enforce_cascade_revocation\": true,\n" - + " \"allowed_authentication_methods\": [\n" - + " \"cookie\"\n" - + " ],\n" - + " \"enforce_device_binding\": \"ip\",\n" - + " \"allow_refresh_token\": true,\n" - + " \"enforce_online_refresh_tokens\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"backchannel_logout_urls\": [\n" - + " \"backchannel_logout_urls\"\n" - + " ],\n" - + " \"backchannel_logout_initiators\": {\n" - + " \"mode\": \"custom\",\n" - + " \"selected_initiators\": [\n" - + " \"rp-logout\"\n" - + " ]\n" - + " },\n" - + " \"backchannel_logout_session_metadata\": {\n" - + " \"include\": true\n" - + " }\n" - + " },\n" - + " \"grant_types\": [\n" - + " \"grant_types\"\n" - + " ],\n" - + " \"jwt_configuration\": {\n" - + " \"lifetime_in_seconds\": 1,\n" - + " \"secret_encoded\": true,\n" - + " \"scopes\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"alg\": \"HS256\"\n" - + " },\n" - + " \"signing_keys\": [\n" - + " {\n" - + " \"pkcs7\": \"pkcs7\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " }\n" - + " ],\n" - + " \"encryption_key\": {\n" - + " \"pub\": \"pub\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " },\n" - + " \"sso\": true,\n" - + " \"sso_disabled\": true,\n" - + " \"cross_origin_authentication\": true,\n" - + " \"cross_origin_loc\": \"cross_origin_loc\",\n" - + " \"custom_login_page_on\": true,\n" - + " \"custom_login_page\": \"custom_login_page\",\n" - + " \"custom_login_page_preview\": \"custom_login_page_preview\",\n" - + " \"form_template\": \"form_template\",\n" - + " \"addons\": {\n" - + " \"aws\": {\n" - + " \"principal\": \"principal\",\n" - + " \"role\": \"role\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"azure_blob\": {\n" - + " \"accountName\": \"accountName\",\n" - + " \"storageAccessKey\": \"storageAccessKey\",\n" - + " \"containerName\": \"containerName\",\n" - + " \"blobName\": \"blobName\",\n" - + " \"expiration\": 1,\n" - + " \"signedIdentifier\": \"signedIdentifier\",\n" - + " \"blob_read\": true,\n" - + " \"blob_write\": true,\n" - + " \"blob_delete\": true,\n" - + " \"container_read\": true,\n" - + " \"container_write\": true,\n" - + " \"container_delete\": true,\n" - + " \"container_list\": true\n" - + " },\n" - + " \"azure_sb\": {\n" - + " \"namespace\": \"namespace\",\n" - + " \"sasKeyName\": \"sasKeyName\",\n" - + " \"sasKey\": \"sasKey\",\n" - + " \"entityPath\": \"entityPath\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"rms\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"mscrm\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"slack\": {\n" - + " \"team\": \"team\"\n" - + " },\n" - + " \"sentry\": {\n" - + " \"org_slug\": \"org_slug\",\n" - + " \"base_url\": \"base_url\"\n" - + " },\n" - + " \"box\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"cloudbees\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"concur\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"dropbox\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"echosign\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"egnyte\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"firebase\": {\n" - + " \"secret\": \"secret\",\n" - + " \"private_key_id\": \"private_key_id\",\n" - + " \"private_key\": \"private_key\",\n" - + " \"client_email\": \"client_email\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"newrelic\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"office365\": {\n" - + " \"domain\": \"domain\",\n" - + " \"connection\": \"connection\"\n" - + " },\n" - + " \"salesforce\": {\n" - + " \"entity_id\": \"entity_id\"\n" - + " },\n" - + " \"salesforce_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"salesforce_sandbox_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"samlp\": {\n" - + " \"mappings\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"audience\": \"audience\",\n" - + " \"recipient\": \"recipient\",\n" - + " \"createUpnClaim\": true,\n" - + " \"mapUnknownClaimsAsIs\": true,\n" - + " \"passthroughClaimsWithNoMapping\": true,\n" - + " \"mapIdentities\": true,\n" - + " \"signatureAlgorithm\": \"signatureAlgorithm\",\n" - + " \"digestAlgorithm\": \"digestAlgorithm\",\n" - + " \"issuer\": \"issuer\",\n" - + " \"destination\": \"destination\",\n" - + " \"lifetimeInSeconds\": 1,\n" - + " \"signResponse\": true,\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n" - + " \"nameIdentifierProbes\": [\n" - + " \"nameIdentifierProbes\"\n" - + " ],\n" - + " \"authnContextClassRef\": \"authnContextClassRef\"\n" - + " },\n" - + " \"layer\": {\n" - + " \"providerId\": \"providerId\",\n" - + " \"keyId\": \"keyId\",\n" - + " \"privateKey\": \"privateKey\",\n" - + " \"principal\": \"principal\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"sap_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"usernameAttribute\": \"usernameAttribute\",\n" - + " \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n" - + " \"scope\": \"scope\",\n" - + " \"servicePassword\": \"servicePassword\",\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n" - + " },\n" - + " \"sharepoint\": {\n" - + " \"url\": \"url\",\n" - + " \"external_url\": [\n" - + " \"external_url\"\n" - + " ]\n" - + " },\n" - + " \"springcm\": {\n" - + " \"acsurl\": \"acsurl\"\n" - + " },\n" - + " \"wams\": {\n" - + " \"masterkey\": \"masterkey\"\n" - + " },\n" - + " \"wsfed\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"zendesk\": {\n" - + " \"accountName\": \"accountName\"\n" - + " },\n" - + " \"zoom\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"sso_integration\": {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " },\n" - + " \"token_endpoint_auth_method\": \"none\",\n" - + " \"is_token_endpoint_ip_header_trusted\": true,\n" - + " \"client_metadata\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"mobile\": {\n" - + " \"android\": {\n" - + " \"app_package_name\": \"app_package_name\",\n" - + " \"sha256_cert_fingerprints\": [\n" - + " \"sha256_cert_fingerprints\"\n" - + " ]\n" - + " },\n" - + " \"ios\": {\n" - + " \"team_id\": \"team_id\",\n" - + " \"app_bundle_identifier\": \"app_bundle_identifier\"\n" - + " }\n" - + " },\n" - + " \"initiate_login_uri\": \"initiate_login_uri\",\n" - + " \"refresh_token\": {\n" - + " \"rotation_type\": \"rotating\",\n" - + " \"expiration_type\": \"expiring\",\n" - + " \"leeway\": 1,\n" - + " \"token_lifetime\": 1,\n" - + " \"infinite_token_lifetime\": true,\n" - + " \"idle_token_lifetime\": 1,\n" - + " \"infinite_idle_token_lifetime\": true,\n" - + " \"policies\": [\n" - + " {\n" - + " \"audience\": \"audience\",\n" - + " \"scope\": [\n" - + " \"scope\"\n" - + " ]\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"default_organization\": {\n" - + " \"organization_id\": \"organization_id\",\n" - + " \"flows\": [\n" - + " \"client_credentials\"\n" - + " ]\n" - + " },\n" - + " \"organization_usage\": \"deny\",\n" - + " \"organization_require_behavior\": \"no_prompt\",\n" - + " \"organization_discovery_methods\": [\n" - + " \"email\"\n" - + " ],\n" - + " \"client_authentication_methods\": {\n" - + " \"private_key_jwt\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"self_signed_tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " }\n" - + " },\n" - + " \"require_pushed_authorization_requests\": true,\n" - + " \"require_proof_of_possession\": true,\n" - + " \"signed_request_object\": {\n" - + " \"required\": true,\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"compliance_level\": \"none\",\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"token_exchange\": {\n" - + " \"allow_any_profile_of_type\": [\n" - + " \"custom_authentication\"\n" - + " ]\n" - + " },\n" - + " \"par_request_expiry\": 1,\n" - + " \"token_quota\": {\n" - + " \"client_credentials\": {\n" - + " \"enforce\": true,\n" - + " \"per_day\": 1,\n" - + " \"per_hour\": 1\n" - + " }\n" - + " },\n" - + " \"express_configuration\": {\n" - + " \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n" - + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" - + " \"connection_profile_id\": \"connection_profile_id\",\n" - + " \"enable_client\": true,\n" - + " \"enable_organization\": true,\n" - + " \"linked_clients\": [\n" - + " {\n" - + " \"client_id\": \"client_id\"\n" - + " }\n" - + " ],\n" - + " \"okta_oin_client_id\": \"okta_oin_client_id\",\n" - + " \"admin_login_domain\": \"admin_login_domain\",\n" - + " \"oin_submission_id\": \"oin_submission_id\"\n" - + " },\n" - + " \"resource_server_identifier\": \"resource_server_identifier\",\n" - + " \"async_approval_notification_channels\": [\n" - + " \"guardian-push\"\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ClientsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -1336,11 +283,9 @@ else if (actualResponseNode.has("kind")) @Test public void testRotateSecret() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"client_id\":\"client_id\",\"tenant\":\"tenant\",\"name\":\"name\",\"description\":\"description\",\"global\":true,\"client_secret\":\"client_secret\",\"app_type\":\"native\",\"logo_uri\":\"logo_uri\",\"is_first_party\":true,\"oidc_conformant\":true,\"callbacks\":[\"callbacks\"],\"allowed_origins\":[\"allowed_origins\"],\"web_origins\":[\"web_origins\"],\"client_aliases\":[\"client_aliases\"],\"allowed_clients\":[\"allowed_clients\"],\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_transfer\":{\"can_create_session_transfer_token\":true,\"enforce_cascade_revocation\":true,\"allowed_authentication_methods\":[\"cookie\"],\"enforce_device_binding\":\"ip\",\"allow_refresh_token\":true,\"enforce_online_refresh_tokens\":true},\"oidc_logout\":{\"backchannel_logout_urls\":[\"backchannel_logout_urls\"],\"backchannel_logout_initiators\":{\"mode\":\"custom\",\"selected_initiators\":[\"rp-logout\"]},\"backchannel_logout_session_metadata\":{\"include\":true}},\"grant_types\":[\"grant_types\"],\"jwt_configuration\":{\"lifetime_in_seconds\":1,\"secret_encoded\":true,\"scopes\":{\"key\":\"value\"},\"alg\":\"HS256\"},\"signing_keys\":[{\"pkcs7\":\"pkcs7\",\"cert\":\"cert\",\"subject\":\"subject\"}],\"encryption_key\":{\"pub\":\"pub\",\"cert\":\"cert\",\"subject\":\"subject\"},\"sso\":true,\"sso_disabled\":true,\"cross_origin_authentication\":true,\"cross_origin_loc\":\"cross_origin_loc\",\"custom_login_page_on\":true,\"custom_login_page\":\"custom_login_page\",\"custom_login_page_preview\":\"custom_login_page_preview\",\"form_template\":\"form_template\",\"addons\":{\"aws\":{\"principal\":\"principal\",\"role\":\"role\",\"lifetime_in_seconds\":1},\"azure_blob\":{\"accountName\":\"accountName\",\"storageAccessKey\":\"storageAccessKey\",\"containerName\":\"containerName\",\"blobName\":\"blobName\",\"expiration\":1,\"signedIdentifier\":\"signedIdentifier\",\"blob_read\":true,\"blob_write\":true,\"blob_delete\":true,\"container_read\":true,\"container_write\":true,\"container_delete\":true,\"container_list\":true},\"azure_sb\":{\"namespace\":\"namespace\",\"sasKeyName\":\"sasKeyName\",\"sasKey\":\"sasKey\",\"entityPath\":\"entityPath\",\"expiration\":1},\"rms\":{\"url\":\"url\"},\"mscrm\":{\"url\":\"url\"},\"slack\":{\"team\":\"team\"},\"sentry\":{\"org_slug\":\"org_slug\",\"base_url\":\"base_url\"},\"box\":{\"key\":\"value\"},\"cloudbees\":{\"key\":\"value\"},\"concur\":{\"key\":\"value\"},\"dropbox\":{\"key\":\"value\"},\"echosign\":{\"domain\":\"domain\"},\"egnyte\":{\"domain\":\"domain\"},\"firebase\":{\"secret\":\"secret\",\"private_key_id\":\"private_key_id\",\"private_key\":\"private_key\",\"client_email\":\"client_email\",\"lifetime_in_seconds\":1},\"newrelic\":{\"account\":\"account\"},\"office365\":{\"domain\":\"domain\",\"connection\":\"connection\"},\"salesforce\":{\"entity_id\":\"entity_id\"},\"salesforce_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"salesforce_sandbox_api\":{\"clientid\":\"clientid\",\"principal\":\"principal\",\"communityName\":\"communityName\",\"community_url_section\":\"community_url_section\"},\"samlp\":{\"mappings\":{\"key\":\"value\"},\"audience\":\"audience\",\"recipient\":\"recipient\",\"createUpnClaim\":true,\"mapUnknownClaimsAsIs\":true,\"passthroughClaimsWithNoMapping\":true,\"mapIdentities\":true,\"signatureAlgorithm\":\"signatureAlgorithm\",\"digestAlgorithm\":\"digestAlgorithm\",\"issuer\":\"issuer\",\"destination\":\"destination\",\"lifetimeInSeconds\":1,\"signResponse\":true,\"nameIdentifierFormat\":\"nameIdentifierFormat\",\"nameIdentifierProbes\":[\"nameIdentifierProbes\"],\"authnContextClassRef\":\"authnContextClassRef\"},\"layer\":{\"providerId\":\"providerId\",\"keyId\":\"keyId\",\"privateKey\":\"privateKey\",\"principal\":\"principal\",\"expiration\":1},\"sap_api\":{\"clientid\":\"clientid\",\"usernameAttribute\":\"usernameAttribute\",\"tokenEndpointUrl\":\"tokenEndpointUrl\",\"scope\":\"scope\",\"servicePassword\":\"servicePassword\",\"nameIdentifierFormat\":\"nameIdentifierFormat\"},\"sharepoint\":{\"url\":\"url\",\"external_url\":[\"external_url\"]},\"springcm\":{\"acsurl\":\"acsurl\"},\"wams\":{\"masterkey\":\"masterkey\"},\"wsfed\":{\"key\":\"value\"},\"zendesk\":{\"accountName\":\"accountName\"},\"zoom\":{\"account\":\"account\"},\"sso_integration\":{\"name\":\"name\",\"version\":\"version\"}},\"token_endpoint_auth_method\":\"none\",\"is_token_endpoint_ip_header_trusted\":true,\"client_metadata\":{\"key\":\"value\"},\"mobile\":{\"android\":{\"app_package_name\":\"app_package_name\",\"sha256_cert_fingerprints\":[\"sha256_cert_fingerprints\"]},\"ios\":{\"team_id\":\"team_id\",\"app_bundle_identifier\":\"app_bundle_identifier\"}},\"initiate_login_uri\":\"initiate_login_uri\",\"refresh_token\":{\"rotation_type\":\"rotating\",\"expiration_type\":\"expiring\",\"leeway\":1,\"token_lifetime\":1,\"infinite_token_lifetime\":true,\"idle_token_lifetime\":1,\"infinite_idle_token_lifetime\":true,\"policies\":[{\"audience\":\"audience\",\"scope\":[\"scope\"]}]},\"default_organization\":{\"organization_id\":\"organization_id\",\"flows\":[\"client_credentials\"]},\"organization_usage\":\"deny\",\"organization_require_behavior\":\"no_prompt\",\"organization_discovery_methods\":[\"email\"],\"client_authentication_methods\":{\"private_key_jwt\":{\"credentials\":[{\"id\":\"id\"}]},\"tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]},\"self_signed_tls_client_auth\":{\"credentials\":[{\"id\":\"id\"}]}},\"require_pushed_authorization_requests\":true,\"require_proof_of_possession\":true,\"signed_request_object\":{\"required\":true,\"credentials\":[{\"id\":\"id\"}]},\"compliance_level\":\"none\",\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"token_exchange\":{\"allow_any_profile_of_type\":[\"custom_authentication\"]},\"par_request_expiry\":1,\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"express_configuration\":{\"initiate_login_uri_template\":\"initiate_login_uri_template\",\"user_attribute_profile_id\":\"user_attribute_profile_id\",\"connection_profile_id\":\"connection_profile_id\",\"enable_client\":true,\"enable_organization\":true,\"linked_clients\":[{\"client_id\":\"client_id\"}],\"okta_oin_client_id\":\"okta_oin_client_id\",\"admin_login_domain\":\"admin_login_domain\",\"oin_submission_id\":\"oin_submission_id\"},\"resource_server_identifier\":\"resource_server_identifier\",\"async_approval_notification_channels\":[\"guardian-push\"]}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ClientsWireTest_testRotateSecret_response.json"))); RotateClientSecretResponseContent response = client.clients().rotateSecret("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -1349,356 +294,8 @@ public void testRotateSecret() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"client_id\": \"client_id\",\n" - + " \"tenant\": \"tenant\",\n" - + " \"name\": \"name\",\n" - + " \"description\": \"description\",\n" - + " \"global\": true,\n" - + " \"client_secret\": \"client_secret\",\n" - + " \"app_type\": \"native\",\n" - + " \"logo_uri\": \"logo_uri\",\n" - + " \"is_first_party\": true,\n" - + " \"oidc_conformant\": true,\n" - + " \"callbacks\": [\n" - + " \"callbacks\"\n" - + " ],\n" - + " \"allowed_origins\": [\n" - + " \"allowed_origins\"\n" - + " ],\n" - + " \"web_origins\": [\n" - + " \"web_origins\"\n" - + " ],\n" - + " \"client_aliases\": [\n" - + " \"client_aliases\"\n" - + " ],\n" - + " \"allowed_clients\": [\n" - + " \"allowed_clients\"\n" - + " ],\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_transfer\": {\n" - + " \"can_create_session_transfer_token\": true,\n" - + " \"enforce_cascade_revocation\": true,\n" - + " \"allowed_authentication_methods\": [\n" - + " \"cookie\"\n" - + " ],\n" - + " \"enforce_device_binding\": \"ip\",\n" - + " \"allow_refresh_token\": true,\n" - + " \"enforce_online_refresh_tokens\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"backchannel_logout_urls\": [\n" - + " \"backchannel_logout_urls\"\n" - + " ],\n" - + " \"backchannel_logout_initiators\": {\n" - + " \"mode\": \"custom\",\n" - + " \"selected_initiators\": [\n" - + " \"rp-logout\"\n" - + " ]\n" - + " },\n" - + " \"backchannel_logout_session_metadata\": {\n" - + " \"include\": true\n" - + " }\n" - + " },\n" - + " \"grant_types\": [\n" - + " \"grant_types\"\n" - + " ],\n" - + " \"jwt_configuration\": {\n" - + " \"lifetime_in_seconds\": 1,\n" - + " \"secret_encoded\": true,\n" - + " \"scopes\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"alg\": \"HS256\"\n" - + " },\n" - + " \"signing_keys\": [\n" - + " {\n" - + " \"pkcs7\": \"pkcs7\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " }\n" - + " ],\n" - + " \"encryption_key\": {\n" - + " \"pub\": \"pub\",\n" - + " \"cert\": \"cert\",\n" - + " \"subject\": \"subject\"\n" - + " },\n" - + " \"sso\": true,\n" - + " \"sso_disabled\": true,\n" - + " \"cross_origin_authentication\": true,\n" - + " \"cross_origin_loc\": \"cross_origin_loc\",\n" - + " \"custom_login_page_on\": true,\n" - + " \"custom_login_page\": \"custom_login_page\",\n" - + " \"custom_login_page_preview\": \"custom_login_page_preview\",\n" - + " \"form_template\": \"form_template\",\n" - + " \"addons\": {\n" - + " \"aws\": {\n" - + " \"principal\": \"principal\",\n" - + " \"role\": \"role\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"azure_blob\": {\n" - + " \"accountName\": \"accountName\",\n" - + " \"storageAccessKey\": \"storageAccessKey\",\n" - + " \"containerName\": \"containerName\",\n" - + " \"blobName\": \"blobName\",\n" - + " \"expiration\": 1,\n" - + " \"signedIdentifier\": \"signedIdentifier\",\n" - + " \"blob_read\": true,\n" - + " \"blob_write\": true,\n" - + " \"blob_delete\": true,\n" - + " \"container_read\": true,\n" - + " \"container_write\": true,\n" - + " \"container_delete\": true,\n" - + " \"container_list\": true\n" - + " },\n" - + " \"azure_sb\": {\n" - + " \"namespace\": \"namespace\",\n" - + " \"sasKeyName\": \"sasKeyName\",\n" - + " \"sasKey\": \"sasKey\",\n" - + " \"entityPath\": \"entityPath\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"rms\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"mscrm\": {\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"slack\": {\n" - + " \"team\": \"team\"\n" - + " },\n" - + " \"sentry\": {\n" - + " \"org_slug\": \"org_slug\",\n" - + " \"base_url\": \"base_url\"\n" - + " },\n" - + " \"box\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"cloudbees\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"concur\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"dropbox\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"echosign\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"egnyte\": {\n" - + " \"domain\": \"domain\"\n" - + " },\n" - + " \"firebase\": {\n" - + " \"secret\": \"secret\",\n" - + " \"private_key_id\": \"private_key_id\",\n" - + " \"private_key\": \"private_key\",\n" - + " \"client_email\": \"client_email\",\n" - + " \"lifetime_in_seconds\": 1\n" - + " },\n" - + " \"newrelic\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"office365\": {\n" - + " \"domain\": \"domain\",\n" - + " \"connection\": \"connection\"\n" - + " },\n" - + " \"salesforce\": {\n" - + " \"entity_id\": \"entity_id\"\n" - + " },\n" - + " \"salesforce_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"salesforce_sandbox_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"principal\": \"principal\",\n" - + " \"communityName\": \"communityName\",\n" - + " \"community_url_section\": \"community_url_section\"\n" - + " },\n" - + " \"samlp\": {\n" - + " \"mappings\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"audience\": \"audience\",\n" - + " \"recipient\": \"recipient\",\n" - + " \"createUpnClaim\": true,\n" - + " \"mapUnknownClaimsAsIs\": true,\n" - + " \"passthroughClaimsWithNoMapping\": true,\n" - + " \"mapIdentities\": true,\n" - + " \"signatureAlgorithm\": \"signatureAlgorithm\",\n" - + " \"digestAlgorithm\": \"digestAlgorithm\",\n" - + " \"issuer\": \"issuer\",\n" - + " \"destination\": \"destination\",\n" - + " \"lifetimeInSeconds\": 1,\n" - + " \"signResponse\": true,\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\",\n" - + " \"nameIdentifierProbes\": [\n" - + " \"nameIdentifierProbes\"\n" - + " ],\n" - + " \"authnContextClassRef\": \"authnContextClassRef\"\n" - + " },\n" - + " \"layer\": {\n" - + " \"providerId\": \"providerId\",\n" - + " \"keyId\": \"keyId\",\n" - + " \"privateKey\": \"privateKey\",\n" - + " \"principal\": \"principal\",\n" - + " \"expiration\": 1\n" - + " },\n" - + " \"sap_api\": {\n" - + " \"clientid\": \"clientid\",\n" - + " \"usernameAttribute\": \"usernameAttribute\",\n" - + " \"tokenEndpointUrl\": \"tokenEndpointUrl\",\n" - + " \"scope\": \"scope\",\n" - + " \"servicePassword\": \"servicePassword\",\n" - + " \"nameIdentifierFormat\": \"nameIdentifierFormat\"\n" - + " },\n" - + " \"sharepoint\": {\n" - + " \"url\": \"url\",\n" - + " \"external_url\": [\n" - + " \"external_url\"\n" - + " ]\n" - + " },\n" - + " \"springcm\": {\n" - + " \"acsurl\": \"acsurl\"\n" - + " },\n" - + " \"wams\": {\n" - + " \"masterkey\": \"masterkey\"\n" - + " },\n" - + " \"wsfed\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"zendesk\": {\n" - + " \"accountName\": \"accountName\"\n" - + " },\n" - + " \"zoom\": {\n" - + " \"account\": \"account\"\n" - + " },\n" - + " \"sso_integration\": {\n" - + " \"name\": \"name\",\n" - + " \"version\": \"version\"\n" - + " }\n" - + " },\n" - + " \"token_endpoint_auth_method\": \"none\",\n" - + " \"is_token_endpoint_ip_header_trusted\": true,\n" - + " \"client_metadata\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"mobile\": {\n" - + " \"android\": {\n" - + " \"app_package_name\": \"app_package_name\",\n" - + " \"sha256_cert_fingerprints\": [\n" - + " \"sha256_cert_fingerprints\"\n" - + " ]\n" - + " },\n" - + " \"ios\": {\n" - + " \"team_id\": \"team_id\",\n" - + " \"app_bundle_identifier\": \"app_bundle_identifier\"\n" - + " }\n" - + " },\n" - + " \"initiate_login_uri\": \"initiate_login_uri\",\n" - + " \"refresh_token\": {\n" - + " \"rotation_type\": \"rotating\",\n" - + " \"expiration_type\": \"expiring\",\n" - + " \"leeway\": 1,\n" - + " \"token_lifetime\": 1,\n" - + " \"infinite_token_lifetime\": true,\n" - + " \"idle_token_lifetime\": 1,\n" - + " \"infinite_idle_token_lifetime\": true,\n" - + " \"policies\": [\n" - + " {\n" - + " \"audience\": \"audience\",\n" - + " \"scope\": [\n" - + " \"scope\"\n" - + " ]\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"default_organization\": {\n" - + " \"organization_id\": \"organization_id\",\n" - + " \"flows\": [\n" - + " \"client_credentials\"\n" - + " ]\n" - + " },\n" - + " \"organization_usage\": \"deny\",\n" - + " \"organization_require_behavior\": \"no_prompt\",\n" - + " \"organization_discovery_methods\": [\n" - + " \"email\"\n" - + " ],\n" - + " \"client_authentication_methods\": {\n" - + " \"private_key_jwt\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"self_signed_tls_client_auth\": {\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " }\n" - + " },\n" - + " \"require_pushed_authorization_requests\": true,\n" - + " \"require_proof_of_possession\": true,\n" - + " \"signed_request_object\": {\n" - + " \"required\": true,\n" - + " \"credentials\": [\n" - + " {\n" - + " \"id\": \"id\"\n" - + " }\n" - + " ]\n" - + " },\n" - + " \"compliance_level\": \"none\",\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"token_exchange\": {\n" - + " \"allow_any_profile_of_type\": [\n" - + " \"custom_authentication\"\n" - + " ]\n" - + " },\n" - + " \"par_request_expiry\": 1,\n" - + " \"token_quota\": {\n" - + " \"client_credentials\": {\n" - + " \"enforce\": true,\n" - + " \"per_day\": 1,\n" - + " \"per_hour\": 1\n" - + " }\n" - + " },\n" - + " \"express_configuration\": {\n" - + " \"initiate_login_uri_template\": \"initiate_login_uri_template\",\n" - + " \"user_attribute_profile_id\": \"user_attribute_profile_id\",\n" - + " \"connection_profile_id\": \"connection_profile_id\",\n" - + " \"enable_client\": true,\n" - + " \"enable_organization\": true,\n" - + " \"linked_clients\": [\n" - + " {\n" - + " \"client_id\": \"client_id\"\n" - + " }\n" - + " ],\n" - + " \"okta_oin_client_id\": \"okta_oin_client_id\",\n" - + " \"admin_login_domain\": \"admin_login_domain\",\n" - + " \"oin_submission_id\": \"oin_submission_id\"\n" - + " },\n" - + " \"resource_server_identifier\": \"resource_server_identifier\",\n" - + " \"async_approval_notification_channels\": [\n" - + " \"guardian-push\"\n" - + " ]\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ClientsWireTest_testRotateSecret_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java index 84794e9db..d20598b30 100644 --- a/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ConnectionProfilesWireTest.java @@ -66,11 +66,10 @@ public void testList() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"organization\":{\"show_as_button\":\"none\",\"assign_membership_on_login\":\"none\"},\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"],\"strategy_overrides\":{\"pingfederate\":{\"enabled_features\":[\"scim\"]},\"ad\":{\"enabled_features\":[\"scim\"]},\"adfs\":{\"enabled_features\":[\"scim\"]},\"waad\":{\"enabled_features\":[\"scim\"]},\"google-apps\":{\"enabled_features\":[\"scim\"]},\"okta\":{\"enabled_features\":[\"scim\"]},\"oidc\":{\"enabled_features\":[\"scim\"]},\"samlp\":{\"enabled_features\":[\"scim\"]}}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody( + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testCreate_response.json"))); CreateConnectionProfileResponseContent response = client.connectionProfiles() .create(CreateConnectionProfileRequestContent.builder() .name("name") @@ -111,61 +110,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"organization\": {\n" - + " \"show_as_button\": \"none\",\n" - + " \"assign_membership_on_login\": \"none\"\n" - + " },\n" - + " \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ],\n" - + " \"strategy_overrides\": {\n" - + " \"pingfederate\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"ad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"adfs\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"waad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"google-apps\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"okta\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"oidc\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"samlp\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " }\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -316,11 +262,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"organization\":{\"show_as_button\":\"none\",\"assign_membership_on_login\":\"none\"},\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"],\"strategy_overrides\":{\"pingfederate\":{\"enabled_features\":[\"scim\"]},\"ad\":{\"enabled_features\":[\"scim\"]},\"adfs\":{\"enabled_features\":[\"scim\"]},\"waad\":{\"enabled_features\":[\"scim\"]},\"google-apps\":{\"enabled_features\":[\"scim\"]},\"okta\":{\"enabled_features\":[\"scim\"]},\"oidc\":{\"enabled_features\":[\"scim\"]},\"samlp\":{\"enabled_features\":[\"scim\"]}}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testGet_response.json"))); GetConnectionProfileResponseContent response = client.connectionProfiles().get("id"); RecordedRequest request = server.takeRequest(); @@ -330,61 +274,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"organization\": {\n" - + " \"show_as_button\": \"none\",\n" - + " \"assign_membership_on_login\": \"none\"\n" - + " },\n" - + " \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ],\n" - + " \"strategy_overrides\": {\n" - + " \"pingfederate\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"ad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"adfs\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"waad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"google-apps\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"okta\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"oidc\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"samlp\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " }\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -427,11 +318,10 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"organization\":{\"show_as_button\":\"none\",\"assign_membership_on_login\":\"none\"},\"connection_name_prefix_template\":\"connection_name_prefix_template\",\"enabled_features\":[\"scim\"],\"strategy_overrides\":{\"pingfederate\":{\"enabled_features\":[\"scim\"]},\"ad\":{\"enabled_features\":[\"scim\"]},\"adfs\":{\"enabled_features\":[\"scim\"]},\"waad\":{\"enabled_features\":[\"scim\"]},\"google-apps\":{\"enabled_features\":[\"scim\"]},\"okta\":{\"enabled_features\":[\"scim\"]},\"oidc\":{\"enabled_features\":[\"scim\"]},\"samlp\":{\"enabled_features\":[\"scim\"]}}}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody( + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json"))); UpdateConnectionProfileResponseContent response = client.connectionProfiles() .update("id", UpdateConnectionProfileRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -470,61 +360,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"organization\": {\n" - + " \"show_as_button\": \"none\",\n" - + " \"assign_membership_on_login\": \"none\"\n" - + " },\n" - + " \"connection_name_prefix_template\": \"connection_name_prefix_template\",\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ],\n" - + " \"strategy_overrides\": {\n" - + " \"pingfederate\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"ad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"adfs\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"waad\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"google-apps\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"okta\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"oidc\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " },\n" - + " \"samlp\": {\n" - + " \"enabled_features\": [\n" - + " \"scim\"\n" - + " ]\n" - + " }\n" - + " }\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/ConnectionProfilesWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/FormsWireTest.java b/src/test/java/com/auth0/client/mgmt/FormsWireTest.java index d7b66d58c..e838c2236 100644 --- a/src/test/java/com/auth0/client/mgmt/FormsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/FormsWireTest.java @@ -66,11 +66,9 @@ public void testList() throws Exception { @Test public void testCreate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"messages\":{\"errors\":{\"key\":\"value\"},\"custom\":{\"key\":\"value\"}},\"languages\":{\"primary\":\"primary\",\"default\":\"default\"},\"translations\":{\"key\":{\"key\":\"value\"}},\"nodes\":[{\"id\":\"id\",\"type\":\"FLOW\",\"coordinates\":{\"x\":1,\"y\":1},\"alias\":\"alias\",\"config\":{\"flow_id\":\"flow_id\"}}],\"start\":{\"hidden_fields\":[{\"key\":\"key\"}],\"next_node\":\"$ending\",\"coordinates\":{\"x\":1,\"y\":1}},\"ending\":{\"redirection\":{\"delay\":1,\"target\":\"target\"},\"after_submit\":{\"flow_id\":\"flow_id\"},\"coordinates\":{\"x\":1,\"y\":1},\"resume_flow\":true},\"style\":{\"css\":\"css\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"embedded_at\":\"embedded_at\",\"submitted_at\":\"submitted_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/FormsWireTest_testCreate_response.json"))); CreateFormResponseContent response = client.forms() .create(CreateFormRequestContent.builder().name("name").build()); RecordedRequest request = server.takeRequest(); @@ -109,75 +107,7 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"messages\": {\n" - + " \"errors\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"custom\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"languages\": {\n" - + " \"primary\": \"primary\",\n" - + " \"default\": \"default\"\n" - + " },\n" - + " \"translations\": {\n" - + " \"key\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"nodes\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"type\": \"FLOW\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"alias\": \"alias\",\n" - + " \"config\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " }\n" - + " }\n" - + " ],\n" - + " \"start\": {\n" - + " \"hidden_fields\": [\n" - + " {\n" - + " \"key\": \"key\"\n" - + " }\n" - + " ],\n" - + " \"next_node\": \"$ending\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " }\n" - + " },\n" - + " \"ending\": {\n" - + " \"redirection\": {\n" - + " \"delay\": 1,\n" - + " \"target\": \"target\"\n" - + " },\n" - + " \"after_submit\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " },\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"resume_flow\": true\n" - + " },\n" - + " \"style\": {\n" - + " \"css\": \"css\"\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"embedded_at\": \"embedded_at\",\n" - + " \"submitted_at\": \"submitted_at\"\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/FormsWireTest_testCreate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -211,11 +141,9 @@ else if (actualResponseNode.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"messages\":{\"errors\":{\"key\":\"value\"},\"custom\":{\"key\":\"value\"}},\"languages\":{\"primary\":\"primary\",\"default\":\"default\"},\"translations\":{\"key\":{\"key\":\"value\"}},\"nodes\":[{\"id\":\"id\",\"type\":\"FLOW\",\"coordinates\":{\"x\":1,\"y\":1},\"alias\":\"alias\",\"config\":{\"flow_id\":\"flow_id\"}}],\"start\":{\"hidden_fields\":[{\"key\":\"key\"}],\"next_node\":\"$ending\",\"coordinates\":{\"x\":1,\"y\":1}},\"ending\":{\"redirection\":{\"delay\":1,\"target\":\"target\"},\"after_submit\":{\"flow_id\":\"flow_id\"},\"coordinates\":{\"x\":1,\"y\":1},\"resume_flow\":true},\"style\":{\"css\":\"css\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"embedded_at\":\"embedded_at\",\"submitted_at\":\"submitted_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/FormsWireTest_testGet_response.json"))); GetFormResponseContent response = client.forms().get("id", GetFormRequestParameters.builder().build()); RecordedRequest request = server.takeRequest(); @@ -225,75 +153,7 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"messages\": {\n" - + " \"errors\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"custom\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"languages\": {\n" - + " \"primary\": \"primary\",\n" - + " \"default\": \"default\"\n" - + " },\n" - + " \"translations\": {\n" - + " \"key\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"nodes\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"type\": \"FLOW\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"alias\": \"alias\",\n" - + " \"config\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " }\n" - + " }\n" - + " ],\n" - + " \"start\": {\n" - + " \"hidden_fields\": [\n" - + " {\n" - + " \"key\": \"key\"\n" - + " }\n" - + " ],\n" - + " \"next_node\": \"$ending\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " }\n" - + " },\n" - + " \"ending\": {\n" - + " \"redirection\": {\n" - + " \"delay\": 1,\n" - + " \"target\": \"target\"\n" - + " },\n" - + " \"after_submit\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " },\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"resume_flow\": true\n" - + " },\n" - + " \"style\": {\n" - + " \"css\": \"css\"\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"embedded_at\": \"embedded_at\",\n" - + " \"submitted_at\": \"submitted_at\"\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/FormsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -336,11 +196,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"messages\":{\"errors\":{\"key\":\"value\"},\"custom\":{\"key\":\"value\"}},\"languages\":{\"primary\":\"primary\",\"default\":\"default\"},\"translations\":{\"key\":{\"key\":\"value\"}},\"nodes\":[{\"id\":\"id\",\"type\":\"FLOW\",\"coordinates\":{\"x\":1,\"y\":1},\"alias\":\"alias\",\"config\":{\"flow_id\":\"flow_id\"}}],\"start\":{\"hidden_fields\":[{\"key\":\"key\"}],\"next_node\":\"$ending\",\"coordinates\":{\"x\":1,\"y\":1}},\"ending\":{\"redirection\":{\"delay\":1,\"target\":\"target\"},\"after_submit\":{\"flow_id\":\"flow_id\"},\"coordinates\":{\"x\":1,\"y\":1},\"resume_flow\":true},\"style\":{\"css\":\"css\"},\"created_at\":\"2024-01-15T09:30:00Z\",\"updated_at\":\"2024-01-15T09:30:00Z\",\"embedded_at\":\"embedded_at\",\"submitted_at\":\"submitted_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/FormsWireTest_testUpdate_response.json"))); UpdateFormResponseContent response = client.forms().update("id", UpdateFormRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -379,75 +237,7 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"name\": \"name\",\n" - + " \"messages\": {\n" - + " \"errors\": {\n" - + " \"key\": \"value\"\n" - + " },\n" - + " \"custom\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"languages\": {\n" - + " \"primary\": \"primary\",\n" - + " \"default\": \"default\"\n" - + " },\n" - + " \"translations\": {\n" - + " \"key\": {\n" - + " \"key\": \"value\"\n" - + " }\n" - + " },\n" - + " \"nodes\": [\n" - + " {\n" - + " \"id\": \"id\",\n" - + " \"type\": \"FLOW\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"alias\": \"alias\",\n" - + " \"config\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " }\n" - + " }\n" - + " ],\n" - + " \"start\": {\n" - + " \"hidden_fields\": [\n" - + " {\n" - + " \"key\": \"key\"\n" - + " }\n" - + " ],\n" - + " \"next_node\": \"$ending\",\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " }\n" - + " },\n" - + " \"ending\": {\n" - + " \"redirection\": {\n" - + " \"delay\": 1,\n" - + " \"target\": \"target\"\n" - + " },\n" - + " \"after_submit\": {\n" - + " \"flow_id\": \"flow_id\"\n" - + " },\n" - + " \"coordinates\": {\n" - + " \"x\": 1,\n" - + " \"y\": 1\n" - + " },\n" - + " \"resume_flow\": true\n" - + " },\n" - + " \"style\": {\n" - + " \"css\": \"css\"\n" - + " },\n" - + " \"created_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"updated_at\": \"2024-01-15T09:30:00Z\",\n" - + " \"embedded_at\": \"embedded_at\",\n" - + " \"submitted_at\": \"submitted_at\"\n" - + "}"; + String expectedResponseBody = TestResources.loadResource("/wire-tests/FormsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java index a8226a01d..f2c783b0b 100644 --- a/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/NetworkAclsWireTest.java @@ -125,11 +125,9 @@ else if (actualJson.has("kind")) @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"description\":\"description\",\"active\":true,\"priority\":1.1,\"rule\":{\"action\":{\"block\":true,\"allow\":true,\"log\":true,\"redirect\":true,\"redirect_uri\":\"redirect_uri\"},\"match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"not_match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"scope\":\"management\"},\"created_at\":\"created_at\",\"updated_at\":\"updated_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testGet_response.json"))); GetNetworkAclsResponseContent response = client.networkAcls().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -138,77 +136,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"description\": \"description\",\n" - + " \"active\": true,\n" - + " \"priority\": 1.1,\n" - + " \"rule\": {\n" - + " \"action\": {\n" - + " \"block\": true,\n" - + " \"allow\": true,\n" - + " \"log\": true,\n" - + " \"redirect\": true,\n" - + " \"redirect_uri\": \"redirect_uri\"\n" - + " },\n" - + " \"match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"not_match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"scope\": \"management\"\n" - + " },\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_at\": \"updated_at\"\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -242,11 +171,9 @@ else if (actualResponseNode.has("kind")) @Test public void testSet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"description\":\"description\",\"active\":true,\"priority\":1.1,\"rule\":{\"action\":{\"block\":true,\"allow\":true,\"log\":true,\"redirect\":true,\"redirect_uri\":\"redirect_uri\"},\"match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"not_match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"scope\":\"management\"},\"created_at\":\"created_at\",\"updated_at\":\"updated_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testSet_response.json"))); SetNetworkAclsResponseContent response = client.networkAcls() .set( "id", @@ -304,77 +231,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"description\": \"description\",\n" - + " \"active\": true,\n" - + " \"priority\": 1.1,\n" - + " \"rule\": {\n" - + " \"action\": {\n" - + " \"block\": true,\n" - + " \"allow\": true,\n" - + " \"log\": true,\n" - + " \"redirect\": true,\n" - + " \"redirect_uri\": \"redirect_uri\"\n" - + " },\n" - + " \"match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"not_match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"scope\": \"management\"\n" - + " },\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_at\": \"updated_at\"\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testSet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -417,11 +275,9 @@ public void testDelete() throws Exception { @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"id\":\"id\",\"description\":\"description\",\"active\":true,\"priority\":1.1,\"rule\":{\"action\":{\"block\":true,\"allow\":true,\"log\":true,\"redirect\":true,\"redirect_uri\":\"redirect_uri\"},\"match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"not_match\":{\"asns\":[1],\"geo_country_codes\":[\"geo_country_codes\"],\"geo_subdivision_codes\":[\"geo_subdivision_codes\"],\"ipv4_cidrs\":[\"ipv4_cidrs\"],\"ipv6_cidrs\":[\"ipv6_cidrs\"],\"ja3_fingerprints\":[\"ja3_fingerprints\"],\"ja4_fingerprints\":[\"ja4_fingerprints\"],\"user_agents\":[\"user_agents\"]},\"scope\":\"management\"},\"created_at\":\"created_at\",\"updated_at\":\"updated_at\"}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testUpdate_response.json"))); UpdateNetworkAclResponseContent response = client.networkAcls() .update("id", UpdateNetworkAclRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -460,77 +316,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"id\": \"id\",\n" - + " \"description\": \"description\",\n" - + " \"active\": true,\n" - + " \"priority\": 1.1,\n" - + " \"rule\": {\n" - + " \"action\": {\n" - + " \"block\": true,\n" - + " \"allow\": true,\n" - + " \"log\": true,\n" - + " \"redirect\": true,\n" - + " \"redirect_uri\": \"redirect_uri\"\n" - + " },\n" - + " \"match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"not_match\": {\n" - + " \"asns\": [\n" - + " 1\n" - + " ],\n" - + " \"geo_country_codes\": [\n" - + " \"geo_country_codes\"\n" - + " ],\n" - + " \"geo_subdivision_codes\": [\n" - + " \"geo_subdivision_codes\"\n" - + " ],\n" - + " \"ipv4_cidrs\": [\n" - + " \"ipv4_cidrs\"\n" - + " ],\n" - + " \"ipv6_cidrs\": [\n" - + " \"ipv6_cidrs\"\n" - + " ],\n" - + " \"ja3_fingerprints\": [\n" - + " \"ja3_fingerprints\"\n" - + " ],\n" - + " \"ja4_fingerprints\": [\n" - + " \"ja4_fingerprints\"\n" - + " ],\n" - + " \"user_agents\": [\n" - + " \"user_agents\"\n" - + " ]\n" - + " },\n" - + " \"scope\": \"management\"\n" - + " },\n" - + " \"created_at\": \"created_at\",\n" - + " \"updated_at\": \"updated_at\"\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/NetworkAclsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/StreamTest.java b/src/test/java/com/auth0/client/mgmt/StreamTest.java index ac3a1fd41..5cd721741 100644 --- a/src/test/java/com/auth0/client/mgmt/StreamTest.java +++ b/src/test/java/com/auth0/client/mgmt/StreamTest.java @@ -69,6 +69,25 @@ public void testSseStreamWithTerminator() { assertEquals(expectedEvents, actualEvents); } + @Test + public void testSseEventDiscriminatedStream() { + List sseStrings = Arrays.asList( + mapToSseWithEvent("start", createMap("status", "pending")), + mapToSseWithEvent("end", createMap("status", "complete"))); + String input = String.join("\n" + "\n", sseStrings); + StringReader sseInput = new StringReader(input); + Stream sseStream = Stream.fromSseWithEventDiscrimination(Map.class, sseInput, "event"); + int expectedEvents = 2; + int actualEvents = 0; + for (Map eventData : sseStream) { + actualEvents++; + // Event-level discrimination includes the event field in the parsed result + assertTrue(eventData.containsKey("event")); + assertTrue(eventData.containsKey("data")); + } + assertEquals(expectedEvents, actualEvents); + } + @Test public void testStreamResourceManagement() throws IOException { StringReader testInput = new StringReader("{\"test\":\"data\"}"); @@ -89,6 +108,10 @@ private static String mapToSse(Map map) { return "data: " + mapToJson(map); } + private static String mapToSseWithEvent(String eventType, Map data) { + return "event: " + eventType + "\n" + "data: " + mapToJson(data); + } + private static Map createMap(String key, String value) { Map map = new HashMap<>(); map.put(key, value); diff --git a/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java b/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java index 976b18d7d..0fb371ffd 100644 --- a/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/TenantsSettingsWireTest.java @@ -38,11 +38,9 @@ public void teardown() throws Exception { @Test public void testGet() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"change_password\":{\"enabled\":true,\"html\":\"html\"},\"guardian_mfa_page\":{\"enabled\":true,\"html\":\"html\"},\"default_audience\":\"default_audience\",\"default_directory\":\"default_directory\",\"error_page\":{\"html\":\"html\",\"show_log_link\":true,\"url\":\"url\"},\"device_flow\":{\"charset\":\"base20\",\"mask\":\"mask\"},\"default_token_quota\":{\"clients\":{\"client_credentials\":{}},\"organizations\":{\"client_credentials\":{}}},\"flags\":{\"change_pwd_flow_v1\":true,\"enable_apis_section\":true,\"disable_impersonation\":true,\"enable_client_connections\":true,\"enable_pipeline2\":true,\"allow_legacy_delegation_grant_types\":true,\"allow_legacy_ro_grant_types\":true,\"allow_legacy_tokeninfo_endpoint\":true,\"enable_legacy_profile\":true,\"enable_idtoken_api2\":true,\"enable_public_signup_user_exists_error\":true,\"enable_sso\":true,\"allow_changing_enable_sso\":true,\"disable_clickjack_protection_headers\":true,\"no_disclose_enterprise_connections\":true,\"enforce_client_authentication_on_passwordless_start\":true,\"enable_adfs_waad_email_verification\":true,\"revoke_refresh_token_grant\":true,\"dashboard_log_streams_next\":true,\"dashboard_insights_view\":true,\"disable_fields_map_fix\":true,\"mfa_show_factor_list_on_enrollment\":true,\"remove_alg_from_jwks\":true,\"improved_signup_bot_detection_in_classic\":true,\"genai_trial\":true,\"enable_dynamic_client_registration\":true,\"disable_management_api_sms_obfuscation\":true,\"trust_azure_adfs_email_verified_connection_property\":true,\"custom_domains_provisioning\":true},\"friendly_name\":\"friendly_name\",\"picture_url\":\"picture_url\",\"support_email\":\"support_email\",\"support_url\":\"support_url\",\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_lifetime\":1.1,\"idle_session_lifetime\":1.1,\"ephemeral_session_lifetime\":1.1,\"idle_ephemeral_session_lifetime\":1.1,\"sandbox_version\":\"sandbox_version\",\"legacy_sandbox_version\":\"legacy_sandbox_version\",\"sandbox_versions_available\":[\"sandbox_versions_available\"],\"default_redirection_uri\":\"default_redirection_uri\",\"enabled_locales\":[\"am\"],\"session_cookie\":{\"mode\":\"persistent\"},\"sessions\":{\"oidc_logout_prompt_enabled\":true},\"oidc_logout\":{\"rp_logout_end_session_endpoint_discovery\":true},\"allow_organization_name_in_authentication_api\":true,\"customize_mfa_in_postlogin_action\":true,\"acr_values_supported\":[\"acr_values_supported\"],\"mtls\":{\"enable_endpoint_aliases\":true},\"pushed_authorization_requests_supported\":true,\"authorization_response_iss_parameter_supported\":true,\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"resource_parameter_profile\":\"audience\",\"phone_consolidated_experience\":true,\"enable_ai_guide\":true}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/TenantsSettingsWireTest_testGet_response.json"))); GetTenantSettingsResponseContent response = client.tenants() .settings() .get(GetTenantSettingsRequestParameters.builder() @@ -56,110 +54,8 @@ public void testGet() throws Exception { // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"change_password\": {\n" - + " \"enabled\": true,\n" - + " \"html\": \"html\"\n" - + " },\n" - + " \"guardian_mfa_page\": {\n" - + " \"enabled\": true,\n" - + " \"html\": \"html\"\n" - + " },\n" - + " \"default_audience\": \"default_audience\",\n" - + " \"default_directory\": \"default_directory\",\n" - + " \"error_page\": {\n" - + " \"html\": \"html\",\n" - + " \"show_log_link\": true,\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"device_flow\": {\n" - + " \"charset\": \"base20\",\n" - + " \"mask\": \"mask\"\n" - + " },\n" - + " \"default_token_quota\": {\n" - + " \"clients\": {\n" - + " \"client_credentials\": {}\n" - + " },\n" - + " \"organizations\": {\n" - + " \"client_credentials\": {}\n" - + " }\n" - + " },\n" - + " \"flags\": {\n" - + " \"change_pwd_flow_v1\": true,\n" - + " \"enable_apis_section\": true,\n" - + " \"disable_impersonation\": true,\n" - + " \"enable_client_connections\": true,\n" - + " \"enable_pipeline2\": true,\n" - + " \"allow_legacy_delegation_grant_types\": true,\n" - + " \"allow_legacy_ro_grant_types\": true,\n" - + " \"allow_legacy_tokeninfo_endpoint\": true,\n" - + " \"enable_legacy_profile\": true,\n" - + " \"enable_idtoken_api2\": true,\n" - + " \"enable_public_signup_user_exists_error\": true,\n" - + " \"enable_sso\": true,\n" - + " \"allow_changing_enable_sso\": true,\n" - + " \"disable_clickjack_protection_headers\": true,\n" - + " \"no_disclose_enterprise_connections\": true,\n" - + " \"enforce_client_authentication_on_passwordless_start\": true,\n" - + " \"enable_adfs_waad_email_verification\": true,\n" - + " \"revoke_refresh_token_grant\": true,\n" - + " \"dashboard_log_streams_next\": true,\n" - + " \"dashboard_insights_view\": true,\n" - + " \"disable_fields_map_fix\": true,\n" - + " \"mfa_show_factor_list_on_enrollment\": true,\n" - + " \"remove_alg_from_jwks\": true,\n" - + " \"improved_signup_bot_detection_in_classic\": true,\n" - + " \"genai_trial\": true,\n" - + " \"enable_dynamic_client_registration\": true,\n" - + " \"disable_management_api_sms_obfuscation\": true,\n" - + " \"trust_azure_adfs_email_verified_connection_property\": true,\n" - + " \"custom_domains_provisioning\": true\n" - + " },\n" - + " \"friendly_name\": \"friendly_name\",\n" - + " \"picture_url\": \"picture_url\",\n" - + " \"support_email\": \"support_email\",\n" - + " \"support_url\": \"support_url\",\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_lifetime\": 1.1,\n" - + " \"idle_session_lifetime\": 1.1,\n" - + " \"ephemeral_session_lifetime\": 1.1,\n" - + " \"idle_ephemeral_session_lifetime\": 1.1,\n" - + " \"sandbox_version\": \"sandbox_version\",\n" - + " \"legacy_sandbox_version\": \"legacy_sandbox_version\",\n" - + " \"sandbox_versions_available\": [\n" - + " \"sandbox_versions_available\"\n" - + " ],\n" - + " \"default_redirection_uri\": \"default_redirection_uri\",\n" - + " \"enabled_locales\": [\n" - + " \"am\"\n" - + " ],\n" - + " \"session_cookie\": {\n" - + " \"mode\": \"persistent\"\n" - + " },\n" - + " \"sessions\": {\n" - + " \"oidc_logout_prompt_enabled\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"rp_logout_end_session_endpoint_discovery\": true\n" - + " },\n" - + " \"allow_organization_name_in_authentication_api\": true,\n" - + " \"customize_mfa_in_postlogin_action\": true,\n" - + " \"acr_values_supported\": [\n" - + " \"acr_values_supported\"\n" - + " ],\n" - + " \"mtls\": {\n" - + " \"enable_endpoint_aliases\": true\n" - + " },\n" - + " \"pushed_authorization_requests_supported\": true,\n" - + " \"authorization_response_iss_parameter_supported\": true,\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"resource_parameter_profile\": \"audience\",\n" - + " \"phone_consolidated_experience\": true,\n" - + " \"enable_ai_guide\": true\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/TenantsSettingsWireTest_testGet_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( @@ -193,11 +89,9 @@ else if (actualResponseNode.has("kind")) @Test public void testUpdate() throws Exception { - server.enqueue( - new MockResponse() - .setResponseCode(200) - .setBody( - "{\"change_password\":{\"enabled\":true,\"html\":\"html\"},\"guardian_mfa_page\":{\"enabled\":true,\"html\":\"html\"},\"default_audience\":\"default_audience\",\"default_directory\":\"default_directory\",\"error_page\":{\"html\":\"html\",\"show_log_link\":true,\"url\":\"url\"},\"device_flow\":{\"charset\":\"base20\",\"mask\":\"mask\"},\"default_token_quota\":{\"clients\":{\"client_credentials\":{}},\"organizations\":{\"client_credentials\":{}}},\"flags\":{\"change_pwd_flow_v1\":true,\"enable_apis_section\":true,\"disable_impersonation\":true,\"enable_client_connections\":true,\"enable_pipeline2\":true,\"allow_legacy_delegation_grant_types\":true,\"allow_legacy_ro_grant_types\":true,\"allow_legacy_tokeninfo_endpoint\":true,\"enable_legacy_profile\":true,\"enable_idtoken_api2\":true,\"enable_public_signup_user_exists_error\":true,\"enable_sso\":true,\"allow_changing_enable_sso\":true,\"disable_clickjack_protection_headers\":true,\"no_disclose_enterprise_connections\":true,\"enforce_client_authentication_on_passwordless_start\":true,\"enable_adfs_waad_email_verification\":true,\"revoke_refresh_token_grant\":true,\"dashboard_log_streams_next\":true,\"dashboard_insights_view\":true,\"disable_fields_map_fix\":true,\"mfa_show_factor_list_on_enrollment\":true,\"remove_alg_from_jwks\":true,\"improved_signup_bot_detection_in_classic\":true,\"genai_trial\":true,\"enable_dynamic_client_registration\":true,\"disable_management_api_sms_obfuscation\":true,\"trust_azure_adfs_email_verified_connection_property\":true,\"custom_domains_provisioning\":true},\"friendly_name\":\"friendly_name\",\"picture_url\":\"picture_url\",\"support_email\":\"support_email\",\"support_url\":\"support_url\",\"allowed_logout_urls\":[\"allowed_logout_urls\"],\"session_lifetime\":1.1,\"idle_session_lifetime\":1.1,\"ephemeral_session_lifetime\":1.1,\"idle_ephemeral_session_lifetime\":1.1,\"sandbox_version\":\"sandbox_version\",\"legacy_sandbox_version\":\"legacy_sandbox_version\",\"sandbox_versions_available\":[\"sandbox_versions_available\"],\"default_redirection_uri\":\"default_redirection_uri\",\"enabled_locales\":[\"am\"],\"session_cookie\":{\"mode\":\"persistent\"},\"sessions\":{\"oidc_logout_prompt_enabled\":true},\"oidc_logout\":{\"rp_logout_end_session_endpoint_discovery\":true},\"allow_organization_name_in_authentication_api\":true,\"customize_mfa_in_postlogin_action\":true,\"acr_values_supported\":[\"acr_values_supported\"],\"mtls\":{\"enable_endpoint_aliases\":true},\"pushed_authorization_requests_supported\":true,\"authorization_response_iss_parameter_supported\":true,\"skip_non_verifiable_callback_uri_confirmation_prompt\":true,\"resource_parameter_profile\":\"audience\",\"phone_consolidated_experience\":true,\"enable_ai_guide\":true}")); + server.enqueue(new MockResponse() + .setResponseCode(200) + .setBody(TestResources.loadResource("/wire-tests/TenantsSettingsWireTest_testUpdate_response.json"))); UpdateTenantSettingsResponseContent response = client.tenants() .settings() .update(UpdateTenantSettingsRequestContent.builder().build()); @@ -237,110 +131,8 @@ else if (actualJson.has("kind")) // Validate response body Assertions.assertNotNull(response, "Response should not be null"); String actualResponseJson = objectMapper.writeValueAsString(response); - String expectedResponseBody = "" - + "{\n" - + " \"change_password\": {\n" - + " \"enabled\": true,\n" - + " \"html\": \"html\"\n" - + " },\n" - + " \"guardian_mfa_page\": {\n" - + " \"enabled\": true,\n" - + " \"html\": \"html\"\n" - + " },\n" - + " \"default_audience\": \"default_audience\",\n" - + " \"default_directory\": \"default_directory\",\n" - + " \"error_page\": {\n" - + " \"html\": \"html\",\n" - + " \"show_log_link\": true,\n" - + " \"url\": \"url\"\n" - + " },\n" - + " \"device_flow\": {\n" - + " \"charset\": \"base20\",\n" - + " \"mask\": \"mask\"\n" - + " },\n" - + " \"default_token_quota\": {\n" - + " \"clients\": {\n" - + " \"client_credentials\": {}\n" - + " },\n" - + " \"organizations\": {\n" - + " \"client_credentials\": {}\n" - + " }\n" - + " },\n" - + " \"flags\": {\n" - + " \"change_pwd_flow_v1\": true,\n" - + " \"enable_apis_section\": true,\n" - + " \"disable_impersonation\": true,\n" - + " \"enable_client_connections\": true,\n" - + " \"enable_pipeline2\": true,\n" - + " \"allow_legacy_delegation_grant_types\": true,\n" - + " \"allow_legacy_ro_grant_types\": true,\n" - + " \"allow_legacy_tokeninfo_endpoint\": true,\n" - + " \"enable_legacy_profile\": true,\n" - + " \"enable_idtoken_api2\": true,\n" - + " \"enable_public_signup_user_exists_error\": true,\n" - + " \"enable_sso\": true,\n" - + " \"allow_changing_enable_sso\": true,\n" - + " \"disable_clickjack_protection_headers\": true,\n" - + " \"no_disclose_enterprise_connections\": true,\n" - + " \"enforce_client_authentication_on_passwordless_start\": true,\n" - + " \"enable_adfs_waad_email_verification\": true,\n" - + " \"revoke_refresh_token_grant\": true,\n" - + " \"dashboard_log_streams_next\": true,\n" - + " \"dashboard_insights_view\": true,\n" - + " \"disable_fields_map_fix\": true,\n" - + " \"mfa_show_factor_list_on_enrollment\": true,\n" - + " \"remove_alg_from_jwks\": true,\n" - + " \"improved_signup_bot_detection_in_classic\": true,\n" - + " \"genai_trial\": true,\n" - + " \"enable_dynamic_client_registration\": true,\n" - + " \"disable_management_api_sms_obfuscation\": true,\n" - + " \"trust_azure_adfs_email_verified_connection_property\": true,\n" - + " \"custom_domains_provisioning\": true\n" - + " },\n" - + " \"friendly_name\": \"friendly_name\",\n" - + " \"picture_url\": \"picture_url\",\n" - + " \"support_email\": \"support_email\",\n" - + " \"support_url\": \"support_url\",\n" - + " \"allowed_logout_urls\": [\n" - + " \"allowed_logout_urls\"\n" - + " ],\n" - + " \"session_lifetime\": 1.1,\n" - + " \"idle_session_lifetime\": 1.1,\n" - + " \"ephemeral_session_lifetime\": 1.1,\n" - + " \"idle_ephemeral_session_lifetime\": 1.1,\n" - + " \"sandbox_version\": \"sandbox_version\",\n" - + " \"legacy_sandbox_version\": \"legacy_sandbox_version\",\n" - + " \"sandbox_versions_available\": [\n" - + " \"sandbox_versions_available\"\n" - + " ],\n" - + " \"default_redirection_uri\": \"default_redirection_uri\",\n" - + " \"enabled_locales\": [\n" - + " \"am\"\n" - + " ],\n" - + " \"session_cookie\": {\n" - + " \"mode\": \"persistent\"\n" - + " },\n" - + " \"sessions\": {\n" - + " \"oidc_logout_prompt_enabled\": true\n" - + " },\n" - + " \"oidc_logout\": {\n" - + " \"rp_logout_end_session_endpoint_discovery\": true\n" - + " },\n" - + " \"allow_organization_name_in_authentication_api\": true,\n" - + " \"customize_mfa_in_postlogin_action\": true,\n" - + " \"acr_values_supported\": [\n" - + " \"acr_values_supported\"\n" - + " ],\n" - + " \"mtls\": {\n" - + " \"enable_endpoint_aliases\": true\n" - + " },\n" - + " \"pushed_authorization_requests_supported\": true,\n" - + " \"authorization_response_iss_parameter_supported\": true,\n" - + " \"skip_non_verifiable_callback_uri_confirmation_prompt\": true,\n" - + " \"resource_parameter_profile\": \"audience\",\n" - + " \"phone_consolidated_experience\": true,\n" - + " \"enable_ai_guide\": true\n" - + "}"; + String expectedResponseBody = + TestResources.loadResource("/wire-tests/TenantsSettingsWireTest_testUpdate_response.json"); JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); Assertions.assertTrue( diff --git a/src/test/java/com/auth0/client/mgmt/TestResources.java b/src/test/java/com/auth0/client/mgmt/TestResources.java new file mode 100644 index 000000000..f3d50fffa --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/TestResources.java @@ -0,0 +1,36 @@ +package com.auth0.client.mgmt; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; + +public final class TestResources { + + private TestResources() { + // Utility class + } + + /** + * Loads a resource file from the classpath and returns its contents as a String. + * @param path the resource path (e.g., "/wire-tests/MyTest_testMethod_request.json") + * @return the contents of the resource file + * @throws RuntimeException if the resource cannot be found or read + */ + public static String loadResource(String path) { + try (InputStream is = TestResources.class.getResourceAsStream(path)) { + if (is == null) { + throw new RuntimeException("Resource not found: " + path); + } + ByteArrayOutputStream result = new ByteArrayOutputStream(); + byte[] buffer = new byte[1024]; + int length; + while ((length = is.read(buffer)) != -1) { + result.write(buffer, 0, length); + } + return result.toString(StandardCharsets.UTF_8.name()); + } catch (IOException e) { + throw new RuntimeException("Failed to load resource: " + path, e); + } + } +}